- No need to separately free this stuff (at least anymore), it
gets done on exit anyway.
h = headerRead(fd, HEADER_MAGIC_YES);
if (h == NULL)
goto exit;
- (void) Fclose(fd); fd = NULL;
if (headerIsEntry(h, RPMTAG_HEADERIMMUTABLE)) {
DIGEST_CTX ctx;
rpmlog(RPMLOG_ERR,
_("Immutable header region could not be read. "
"Corrupted package?\n"));
- h = headerFree(h);
goto exit;
}
ctx = rpmDigestInit(PGPHASHALGO_SHA1, RPMDIGEST_NONE);
(void) rpmDigestFinal(ctx, (void **)&SHA1, NULL, 1);
rpmtdFreeData(&utd);
}
- h = headerFree(h);
if (SHA1 == NULL)
goto exit;
ret = 0;
break;
default:
- goto exit;
break;
}