xbps-pkgdb: fixed some memleaks.

This commit is contained in:
Juan RP
2012-12-14 06:04:58 +01:00
parent a0443fc4ce
commit 338c0d549f
3 changed files with 12 additions and 2 deletions

View File

@@ -122,6 +122,9 @@ check_pkg_symlinks(struct xbps_handle *xhp, const char *pkgname, void *arg)
if (buf2 == NULL) {
xbps_warn_printf("%s: broken symlink %s (target: %s)\n",
pkgname, file, tgt);
free(path);
free(tgt_path);
free(p);
free(buf);
free(lnk);
continue;
@@ -150,6 +153,7 @@ check_pkg_symlinks(struct xbps_handle *xhp, const char *pkgname, void *arg)
free(buf);
free(path);
free(tgt_path);
free(lnk);
}
return broken;
}