summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-30 04:42:31 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-30 04:42:31 +0200
commit002fd7132a7368a3103ba6d5e09fd8e546a2bfa3 (patch)
treec2dd304df0daa5dcf7643397592c96b07a14ae55
parent6f1f926bb82b7a4bb1fd3cfc981c7596843a9a6e (diff)
downloadfastd-002fd7132a7368a3103ba6d5e09fd8e546a2bfa3.tar
fastd-002fd7132a7368a3103ba6d5e09fd8e546a2bfa3.zip
Fix memory leak in on_up
-rw-r--r--src/fastd.c1
1 files changed, 1 insertions, 0 deletions
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) {