Fix a memory leak on rpmdb --importdb
This commit is contained in:
parent
42985d5482
commit
4b830f7b5a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue