]> git.ipfire.org Git - network.git/commitdiff
libnetwork: Actually free context
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Feb 2018 13:56:15 +0000 (13:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Feb 2018 13:56:15 +0000 (13:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libnetwork/libnetwork.c

index 09651a066537c9c81630d57043a97d91b2626a49..3171bd9827a01528f80923697556b452623f9533 100644 (file)
@@ -110,6 +110,8 @@ NETWORK_EXPORT struct network_ctx* network_ref(struct network_ctx* ctx) {
 
 static void network_free(struct network_ctx* ctx) {
        DEBUG(ctx, "network ctx %p released\n", ctx);
+
+       free(ctx);
 }
 
 NETWORK_EXPORT struct network_ctx* network_unref(struct network_ctx* ctx) {