Merge pull request #2692 from GeorgesStavracas/gbsneto/transaction-leak

lib/commit: Unref repo on success
This commit is contained in:
Colin Walters 2022-08-22 14:25:07 -04:00 committed by GitHub
commit fb826346fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;