summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rpmchecksig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmchecksig.c b/lib/rpmchecksig.c
index 9680c5dd6..956afdd11 100644
--- a/lib/rpmchecksig.c
+++ b/lib/rpmchecksig.c
@@ -697,7 +697,6 @@ int rpmVerifySignatures(QVA_t qva, rpmts ts, FD_t fd,
if (readFile(fd, fn, dig, plbundle, hdrbundle)) {
goto exit;
}
- fdSetBundle(fd, NULL); /* XXX avoid double-free from fd close */
rasprintf(&buf, "%s:%c", fn, (rpmIsVerbose() ? '\n' : ' ') );
@@ -776,6 +775,7 @@ exit:
free(buf);
rpmDigestBundleFree(hdrbundle);
rpmDigestBundleFree(plbundle);
+ fdSetBundle(fd, NULL); /* XXX avoid double-free from fd close */
sigh = rpmFreeSignature(sigh);
hi = headerFreeIterator(hi);
rpmKeyringFree(keyring);