Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
libpkg: fix leak on lstat failure
Isaac Freund committed 4 months ago
commit c1a431476216984c20c695f9926570f286300d0a
parent 485013e67ad74b2932d61d5a2cb8ac9706ce86e4
1 file changed +1 -0
modified libpkg/pkg_abi.c
@@ -589,6 +589,7 @@ pkg_analyse_files(struct pkgdb *db __unused, struct pkg *pkg, const char *stage)

			if (lstat(fpath, &st) != 0) {
				pkg_emit_errno("lstat() failed for", fpath);
+
				free(provided);
				continue;
			}
			/* If the corresponding PATHS option isn't set (i.e. an empty ucl array)