summaryrefslogtreecommitdiff
path: root/modules/fcntl
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-11-22 23:37:57 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2020-11-22 23:39:13 -0800
commit5aca1898c9f62370142920be91992d4efe72bb7b (patch)
treebc63ae26d00d43b2effde3f3701561204abc2345 /modules/fcntl
parent2918d4a199cde71cecd0bab865954c3decd2f16f (diff)
downloadgnulib-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