diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-22 23:37:57 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-22 23:39:13 -0800 |
commit | 5aca1898c9f62370142920be91992d4efe72bb7b (patch) | |
tree | bc63ae26d00d43b2effde3f3701561204abc2345 /modules/fcntl | |
parent | 2918d4a199cde71cecd0bab865954c3decd2f16f (diff) | |
download | gnulib-5aca1898c9f62370142920be91992d4efe72bb7b.tar.gz |
canonicalize-lgpl: fix memory leak
* lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
which could have occurred if BUF was so large that malloc was
called. Do this by allocating EXTRA_BUF and BUF at the same time;
this eliminates the need to free BUF separately.
Diffstat (limited to 'modules/fcntl')
0 files changed, 0 insertions, 0 deletions