Merge pull request #2692 from GeorgesStavracas/gbsneto/transaction-leak
lib/commit: Unref repo on success
This commit is contained in:
commit
fb826346fe
|
|
@ -1745,7 +1745,7 @@ ostree_repo_prepare_transaction (OstreeRepo *self,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Success: do not abort the transaction when returning. */
|
/* Success: do not abort the transaction when returning. */
|
||||||
txn->repo = NULL; (void) txn;
|
g_clear_object (&txn->repo); (void) txn;
|
||||||
|
|
||||||
if (out_transaction_resume)
|
if (out_transaction_resume)
|
||||||
*out_transaction_resume = ret_transaction_resume;
|
*out_transaction_resume = ret_transaction_resume;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue