summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/pack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/pack.c b/build/pack.c
index b6c808e09..eb87eca17 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -341,6 +341,8 @@ static rpmRC writeRPM(Header *hdrp, unsigned char ** pkgidp, const char *fileNam
char **strings = NULL;
if ((err = poptParseArgvString(buildinfo, &count, &strings))) {
+ rc = RPMRC_FAIL;
+ free(buildinfo);
rpmlog(RPMLOG_ERR, _("Can't parse BUILDINFO tag: %s\n"), poptStrerror(xx));
goto exit;
}