[Freeswitch-svn] [commit] r8679 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su
Freeswitch SVN
mikej at freeswitch.org
Mon May 26 21:36:56 EDT 2008
Author: mikej
Date: Mon May 26 21:36:56 2008
New Revision: 8679
Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c
Log:
sync to sofia darcs trunk
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c Mon May 26 21:36:56 2008
@@ -970,7 +970,7 @@
return 0;
}
-#define safe_free(it) if (it) { free(it); it = NULL; }
+
/** Internal deinitialization */
static
void _su_home_deinit(su_home_t *home)
@@ -1006,17 +1006,16 @@
}
else if (su_is_preloaded(b, b->sub_nodes[i].sua_data))
continue;
-
safefree(b->sub_nodes[i].sua_data);
}
}
if (b->sub_preload && !b->sub_preauto)
- safe_free(b->sub_preload);
+ free(b->sub_preload);
if (b->sub_stats)
- safe_free(b->sub_stats);
+ free(b->sub_stats);
if (!b->sub_auto)
- safe_free(b);
+ free(b);
home->suh_blocks = NULL;
More information about the Freeswitch-svn
mailing list