]> pd.if.org Git - zpackage/blobdiff - zpm-note.c
fix possible memory leak in uncompress
[zpackage] / zpm-note.c
index 927f30a45b8443ed6c93f92a25ae2061fdef35c7..33e7fa2a923b03de0779fefac186fa14798ca8d6 100644 (file)
@@ -106,5 +106,8 @@ int main(int ac, char **av){
        }
        fail = pkg.error;
        zpm_close(&pkg);
+       if (n.id) {
+               zpm_note_free(&n);
+       }
        return fail ? EXIT_FAILURE : EXIT_SUCCESS;
 }