]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9824 [tone2wav.c] Fix segfault on tone2wav
authorSebastian Kemper <sebastian_ml@gmx.net>
Wed, 7 Dec 2016 16:01:51 +0000 (17:01 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Wed, 7 Dec 2016 16:02:35 +0000 (17:02 +0100)
I checked fs_encode and saw that it terminates itself a bit differently, so I applied the same to tone2wav and the segfaults went away

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
src/tone2wav.c

index 9eed5d70a123fb21df075834d46b353fa41704a0..f71d77aecae04e2fcfdbb587c8daa5d446ed3738 100644 (file)
@@ -172,7 +172,8 @@ int main(int argc, char *argv[])
 
  end:
 
-       switch_core_destroy();
+       switch_safe_free(SWITCH_GLOBAL_dirs.mod_dir);
+       //switch_core_destroy();
 
        return r;