Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
libpkg: fix leak on lstat failure
Isaac Freund committed 3 months ago
commit c1a431476216984c20c695f9926570f286300d0a
parent 485013e
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)