pkg: free SPDX license tags when a package is destroyed

master
Ariadne Conill 2022-08-08 10:25:24 +00:00
parent af9b26c15c
commit 28b5d57b98
1 changed files with 3 additions and 0 deletions

View File

@ -527,6 +527,9 @@ pkgconf_pkg_free(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
if (pkg->pc_filedir != NULL)
free(pkg->pc_filedir);
if (pkg->license != NULL)
free(pkg->license);
free(pkg);
}