From 002fd7132a7368a3103ba6d5e09fd8e546a2bfa3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 30 Mar 2012 04:42:31 +0200 Subject: Fix memory leak in on_up --- src/fastd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fastd.c b/src/fastd.c index 0083dcd..535c772 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -138,6 +138,7 @@ static void on_up(fastd_context *ctx) { pr_warn(ctx, "on-up command exited with status %i", WEXITSTATUS(ret)); chdir(cwd); + free(cwd); } static void init_peers(fastd_context *ctx) { -- cgit v1.2.3