diff options
-rw-r--r-- | lib/rpminstall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c index e79f532eb..ee6c7dba9 100644 --- a/lib/rpminstall.c +++ b/lib/rpminstall.c @@ -563,13 +563,14 @@ restart: rc = tryReadManifest(eiu); if (rc == RPMRC_OK) { eiu->prevx++; + headerFree(h); goto restart; } } if (headerIsSource(h)) { + headerFree(h); if (ia->installInterfaceFlags & INSTALL_FRESHEN) { - headerFree(h); continue; } rpmlog(RPMLOG_DEBUG, "\tadded source package [%d]\n", @@ -594,6 +595,7 @@ restart: rpmlog(RPMLOG_ERR, _("package %s is not relocatable\n"), headerGetString(h, RPMTAG_NAME)); eiu->numFailed++; + headerFree(h); goto exit; } } |