Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
file_to_bufferat: fix potential memory leak
Baptiste Daroussin committed 2 months ago
commit 2a6170e50405db18a90209009157ebb5c801136f
parent 7f34fff9258a7db7ba6a1858ce151fc4debf7999
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;
	}