diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-30 04:42:31 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-30 04:42:31 +0200 |
commit | 002fd7132a7368a3103ba6d5e09fd8e546a2bfa3 (patch) | |
tree | c2dd304df0daa5dcf7643397592c96b07a14ae55 /src | |
parent | 6f1f926bb82b7a4bb1fd3cfc981c7596843a9a6e (diff) | |
download | fastd-002fd7132a7368a3103ba6d5e09fd8e546a2bfa3.tar fastd-002fd7132a7368a3103ba6d5e09fd8e546a2bfa3.zip |
Fix memory leak in on_up
Diffstat (limited to 'src')
-rw-r--r-- | src/fastd.c | 1 |
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) { |