aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWei CHEN <weichen@astri.org>2019-04-09 12:38:40 +0800
committerDave Barach <openvpp@barachs.net>2019-04-11 12:11:47 +0000
commit5e282e93ad9f961d332cac9a033be33542979848 (patch)
tree4ab4488cbd7502212475dd23440dde05105db223 /src
parent712dde9cec41beef3b4252a8cf14f98b674a8d79 (diff)
vppinfra: fix the issue that mheap_get_trace record wrong pointer
when mspace_get_aligned try to malloc a chunk with align greater than 16 Change-Id: Ic3b91fc9532248482662f019bbfa073da18645ed Signed-off-by: Wei CHEN <weichen@astri.org>
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/dlmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/dlmalloc.c b/src/vppinfra/dlmalloc.c
index 9ed1e04f776..53caa3fc3c6 100644
--- a/src/vppinfra/dlmalloc.c
+++ b/src/vppinfra/dlmalloc.c
@@ -4250,7 +4250,7 @@ void* mspace_get_aligned (mspace msp,
if (use_trace(ms)) {
mchunkptr p = mem2chunk(rv);
size_t psize = chunksize(p);
- mheap_get_trace ((unsigned long)rv, psize);
+ mheap_get_trace (searchp, psize);
}
return (void *) searchp;
}