]> git.ipfire.org Git - pakfire.git/commitdiff
transaction: Avoid leaking memory
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Oct 2024 08:44:50 +0000 (08:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Oct 2024 11:37:55 +0000 (11:37 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/transaction.c

index 336678523f7d2a2a2b237950cb50a5f49f2edfa9..ee3be60dfe11c87974d85ffef9fde97e7e563c92 100644 (file)
@@ -335,8 +335,6 @@ PAKFIRE_EXPORT int pakfire_transaction_create(struct pakfire_transaction** trans
        // Return the transaction
        *transaction = pakfire_transaction_ref(t);
 
-       return 0;
-
 ERROR:
        if (t)
                pakfire_transaction_unref(t);