Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
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;
	}