Modified: freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c (14173 => 14174)
--- freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c 2009-07-09 16:17:07 UTC (rev 14173)
+++ freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c 2009-07-09 16:41:49 UTC (rev 14174)
@@ -443,8 +443,10 @@
switch_goto_status(SWITCH_STATUS_SUCCESS, done);
done:
- switch_event_destroy(&event);
- if (!session) {
+ if (event) {
+ switch_event_destroy(&event);
+ }
+ if (!session && pool) {
switch_core_destroy_memory_pool(&pool);
}
}
@@ -510,8 +512,10 @@
done:
switch_safe_free(mydata);
- switch_event_destroy(&event);
- if (!session) {
+ if (event) {
+ switch_event_destroy(&event);
+ }
+ if (!session && pool) {
switch_core_destroy_memory_pool(&pool);
}
return status;