fixed a memory leak in the transaction cleanup code
This commit is contained in:
parent
325d297739
commit
1704a00404
1 changed files with 2 additions and 1 deletions
|
@ -69,11 +69,12 @@ void trans_free(pmtrans_t *trans)
|
||||||
FREESYNC(i->data);
|
FREESYNC(i->data);
|
||||||
}
|
}
|
||||||
FREELIST(trans->packages);
|
FREELIST(trans->packages);
|
||||||
FREELIST(trans->skiplist);
|
|
||||||
} else {
|
} else {
|
||||||
FREELISTPKGS(trans->packages);
|
FREELISTPKGS(trans->packages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FREELIST(trans->skiplist);
|
||||||
|
|
||||||
free(trans);
|
free(trans);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue