From: Sebastian Kemper Date: Wed, 7 Dec 2016 16:01:51 +0000 (+0100) Subject: FS-9824 [tone2wav.c] Fix segfault on tone2wav X-Git-Tag: v1.8.0~998^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ed1433cc6dd6936c1f1e474e653cbb45593c937;p=thirdparty%2Ffreeswitch.git FS-9824 [tone2wav.c] Fix segfault on tone2wav 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 --- diff --git a/src/tone2wav.c b/src/tone2wav.c index 9eed5d70a1..f71d77aeca 100644 --- a/src/tone2wav.c +++ b/src/tone2wav.c @@ -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;