From 859a33260255787909cdbacbf3c754ec17ce6760 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 27 Mar 2012 15:23:07 -0500 Subject: [PATCH] FS-4045 try this patch --- src/switch_loadable_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 9474fee9b0..560004fd3b 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -1289,6 +1289,11 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena if (err) { + + if (dso) { + switch_dso_destroy(&dso); + } + if (pool) { switch_core_destroy_memory_pool(&pool); }