From 4ed1433cc6dd6936c1f1e474e653cbb45593c937 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Wed, 7 Dec 2016 17:01:51 +0100 Subject: [PATCH] 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 --- src/tone2wav.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;