mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
fix bug in debug free following debug realloc to smaller size
This commit is contained in:
parent
eb2b139e48
commit
38867b2875
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; -*- */
|
/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright 2001-2009 by Eric House (xwords@eehouse.org). All rights
|
* Copyright 2001-2009 by Eric House (xwords@eehouse.org). All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
@ -206,6 +206,7 @@ mpool_realloc( MemPoolCtx* mpool, void* ptr, XP_U32 newsize, const char* file,
|
||||||
entry->fileName = file;
|
entry->fileName = file;
|
||||||
entry->func = func;
|
entry->func = func;
|
||||||
entry->lineNo = lineNo;
|
entry->lineNo = lineNo;
|
||||||
|
entry->size = newsize;
|
||||||
}
|
}
|
||||||
return entry->ptr;
|
return entry->ptr;
|
||||||
} /* mpool_realloc */
|
} /* mpool_realloc */
|
||||||
|
|
Loading…
Reference in a new issue