Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg check -d: Plug a memory leak
Bryan Drewery committed 11 years ago
commit ce29afeada5adcf4a496c0f9d356ae6560904548
parent 046ad21
1 file changed +1 -0
modified src/check.c
@@ -153,6 +153,7 @@ fix_deps(struct pkgdb *db, struct deps_head *dh, int nbpkgs, bool yes)

	if (pkgdb_obtain_lock(db, PKGDB_LOCK_ADVISORY) != EPKG_OK) {
		pkgdb_close(db);
+
		free(pkgs);
		warnx("Cannot get an advisory lock on a database, it is locked by another process");
		return (EX_TEMPFAIL);
	}