Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
pkg_compat: fix memleak
Philippe Pepiot committed 15 years ago
commit 12487f0793b12fe8a0fd2b06d0c27a0498e1d116
parent dfea739c2721285bea2e9a69f3917140485c87b1
1 file changed +1 -0
modified libpkg/pkg_compat.c
@@ -285,6 +285,7 @@ pkg_compat_convert_installed(const char *pkg_dbdir, char *pkgname, char *manifes
	cjson_output = cJSON_Print(rootpkg);
	fs = fopen(manifestpath, "w+");
	fprintf(fs, "%s", cjson_output);
+
	free(cjson_output);
	fclose(fs);

	return (rootpkg);