]> git.ipfire.org Git - pakfire.git/commitdiff
jail: Free the timeout timer
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 16:12:34 +0000 (16:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 16:12:34 +0000 (16:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/jail.c

index 89530d411bb8c7f2cf955555ec407c6756ecb149..e990a68fa32a9e9f6cf5f60a85e9bc36982e1209 100644 (file)
@@ -1578,6 +1578,8 @@ ERROR:
                pakfire_log_stream_unref(ctx.log.DEBUG);
 #endif /* ENABLE_DEBUG */
 
+       if (ctx.timeout)
+               sd_event_source_unref(ctx.timeout);
        if (ctx.loop)
                sd_event_unref(ctx.loop);