[Freeswitch-svn] [commit] r4922 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Thu Apr 12 16:09:23 EDT 2007
Author: mikej
Date: Thu Apr 12 16:09:23 2007
New Revision: 4922
Modified:
freeswitch/trunk/src/switch_core_session.c
Log:
do destructive session destroy in debug mode.
Modified: freeswitch/trunk/src/switch_core_session.c
==============================================================================
--- freeswitch/trunk/src/switch_core_session.c (original)
+++ freeswitch/trunk/src/switch_core_session.c Thu Apr 12 16:09:23 2007
@@ -671,6 +671,9 @@
switch_channel_uninit((*session)->channel);
pool = (*session)->pool;
+#ifndef NDEBUG
+ memset(*session, 0, sizeof(switch_core_session_t));
+#endif
*session = NULL;
apr_pool_destroy(pool);
pool = NULL;
More information about the Freeswitch-svn
mailing list