summaryrefslogtreecommitdiff
path: root/tests/test-freadable.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-24 13:10:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-24 13:11:11 -0700
commit84a1c646b281107213dcaa481b97e0fcba2ec589 (patch)
tree45f1592ee1eafabe4f5abcdc01671edd67da5cf6 /tests/test-freadable.c
parent444f6d99e3786db042fd90bade4f1864e89ceb05 (diff)
downloadgnulib-84a1c646b281107213dcaa481b97e0fcba2ec589.tar.gz
xmalloc: Do not leak if underlying realloc is C99 compatible.
* lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly. This avoids a leak on C99-based systems. See <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
Diffstat (limited to 'tests/test-freadable.c')
0 files changed, 0 insertions, 0 deletions