mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-10 22:33:18 -05:00
and mark realloc freed data
git-svn-id: file:///svn/unbound/trunk@2017 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
6f1c044381
commit
b1c920bc8a
1 changed files with 1 additions and 0 deletions
|
|
@ -575,6 +575,7 @@ void *unbound_stat_realloc_lite(void *ptr, size_t size, const char* file,
|
|||
if(orig < size)
|
||||
memmove(newa, ptr, orig);
|
||||
else memmove(newa, ptr, size);
|
||||
memset(real, 0xdd, orig+lite_pad*2+sizeof(size_t)); /* mark it */
|
||||
free(real);
|
||||
return newa;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue