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

lib/commit: Unref repo on success
This commit is contained in:
Colin Walters authored and GitHub committed 2022-08-22 14:25:07 -04:00
commit fb826346fe
1 file changed
+1 -1
+1 -1
View File
@@ -1745,7 +1745,7 @@ ostree_repo_prepare_transaction (OstreeRepo *self,
return FALSE;
/* Success: do not abort the transaction when returning. */
txn->repo = NULL; (void) txn;
g_clear_object (&txn->repo); (void) txn;
if (out_transaction_resume)
*out_transaction_resume = ret_transaction_resume;