projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e36394a
)
[lib] The internal debug memory leak printout has output jumbled.
author
Konrad Rzeszutek
<konrad@virtualiron.com>
Wed, 17 Dec 2008 22:22:01 +0000
(23:22 +0100)
committer
Christophe Varoqui
<christophe.varoqui@free.fr>
Wed, 17 Dec 2008 22:22:01 +0000
(23:22 +0100)
When using the internal memory leak the function that call realloc get a
confused output. The fix puts the list of operation in the right
order.
libmultipath/memory.c
patch
|
blob
|
history
diff --git
a/libmultipath/memory.c
b/libmultipath/memory.c
index
71dfe40
..
bd6ae5e
100644
(file)
--- a/
libmultipath/memory.c
+++ b/
libmultipath/memory.c
@@
-459,9
+459,8
@@
dbg_realloc(void *buffer, unsigned long size, char *file, char *function,
if (debug & 1)
printf("realloc [%3d:%3d] %p, %4ld %s %d %s -> %p %4ld %s %d %s\n",
i, number_alloc_list, alloc_list[i].ptr,
- alloc_list[i].size, file, line, function, buf, size,
- alloc_list[i].file, alloc_list[i].line,
- alloc_list[i].func);
+ alloc_list[i].size, alloc_list[i].file, alloc_list[i].line, alloc_list[i].func,
+ buf, size, file, line, function);
alloc_list[i].ptr = buf;
alloc_list[i].size = size;