Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Resource leak
Baptiste Daroussin committed 10 years ago
commit bb61e81fd30e52ae29ccb27809ad871bf203c82b
parent aa13a93
1 file changed +3 -1
modified libpkg/pkg_add.c
@@ -135,8 +135,10 @@ attempt_to_merge(int rootfd, struct pkg_config_file *rcf, struct pkg *local,
		pkg_debug(2, "Checksum are different %d", strlen(localconf));
	}
	rcf->status = MERGE_FAILED;
-
	if (!merge)
+
	if (!merge) {
+
		free(localconf);
		return;
+
	}

	pkg_debug(1, "Attempting to merge %s", rcf->path);
	newconf = sbuf_new_auto();