projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
typo fix in alloc-srvx.c; avoid dereferencing free()'d bans
[srvx.git]
/
src
/
alloc-srvx.c
diff --git
a/src/alloc-srvx.c
b/src/alloc-srvx.c
index 189b36d91bc982d927a90090918ed46b6ea07a16..72fca5a6e10947d9b8437d8936a05149e7a66014 100644
(file)
--- a/
src/alloc-srvx.c
+++ b/
src/alloc-srvx.c
@@
-98,7
+98,7
@@
srvx_realloc(const char *file, unsigned int line, void *ptr, size_t size)
alloc_count++;
alloc_size += size;
- srvx_free(
block
);
+ srvx_free(
file, line, block + 1
);
return newblock + 1;
}