Radish
alpha
Sign in
H
HardenedBSD-pkg
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Clone
Radicle
Git
Source
Commits
10440
Issues
Patches
Commits
›
2a6170e
file_to_bufferat: fix potential memory leak
Baptiste Daroussin
committed
2 months ago
commit 2a6170e50405db18a90209009157ebb5c801136f
parent
7f34fff
1 file changed
+1
-0
modified
libpkg/utils.c
@@ -244,6 +244,7 @@ cleanup:
(*buffer)[st.st_size] = '\0';
*sz = st.st_size;
} else {
+
free(*buffer);
*buffer = NULL;
*sz = -1;
}