Fix a memory leak on rpmdb --importdb

This commit is contained in:
Panu Matilainen 2024-10-11 14:26:57 +03:00 committed by Florian Festi
parent 42985d5482
commit 4b830f7b5a
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ static int importDB(rpmts ts)
Header h;
while ((h = headerRead(fd, HEADER_MAGIC_YES))) {
rc += rpmtsImportHeader(txn, h, 0);
headerFree(h);
}
} else {
rc = -1;