aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc-debug.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-10-06 21:48:35 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-10-06 22:26:05 +0530
commit558168c78ea1eb8efb33959c1da9d6b5a997fd7b (patch)
tree6ae3b67399f5c9575db818183cbe172d6506db7b /malloc/malloc-debug.c
parenta996d13b8a2e101bedbb1bdaa7ffcfea3b959bb2 (diff)
downloadglibc-558168c78ea1eb8efb33959c1da9d6b5a997fd7b.tar.xz
glibc-558168c78ea1eb8efb33959c1da9d6b5a997fd7b.zip
support: Also return fd when it is 0
The fd validity check in open_dev_null checks if fd > 0, which would lead to a leaked fd if it is == 0. Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> (cherry picked from commit 27b6edbb090f736b101f569620d8ad0e7217ddf8)
Diffstat (limited to 'malloc/malloc-debug.c')
0 files changed, 0 insertions, 0 deletions