git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4968 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2007-04-18 16:10:46 +00:00
1 parent 376d177b3c
commit fbf2a1cb79
7 files changed
+72 -46

No files matched your search

+12 -1
View File
@@ -182,10 +182,20 @@ iks_stack_stat (ikstack *s, size_t *allocated, size_t *used)
}
void
iks_stack_delete (ikstack *s)
iks_stack_delete (ikstack **sp)
{
ikschunk *c, *tmp;
ikstack *s;
if (!sp) {
return;
}
s = *sp;
if (!s) {
return;
}
c = s->meta->next;
while (c) {
tmp = c->next;
@@ -199,4 +209,5 @@ iks_stack_delete (ikstack *s)
c = tmp;
}
iks_free (s);
*sp = NULL;
}