Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Plug a memory leak
Baptiste Daroussin committed 12 years ago
commit bf47474d134b777812008beb7a5126a16c4fb2e1
parent d5601e6be31267803f449c610dc208b25417b0b0
1 file changed +2 -2
modified libpkg/pkgdb.c
@@ -2428,14 +2428,14 @@ pkgdb_register_pkg(struct pkgdb *db, struct pkg *pkg, int complete, int forced)
				pkgdb_it_free(it);
				goto cleanup;
			}
-
		}
-
		else {
+
		} else {
			pkg_emit_error("%s-%s conflicts with %s-%s"
					" (installs files into the same place). "
					" Problematic file: %s ignored by forced mode",
					name, version, name2, version2, pkg_path);
			pkg_free(pkg2);
		}
+
		pkgdb_it_free(it);
	}

	/*