]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FreeTDM: Don't ftdm_safe_free() span information in ftdm_span_destroy() if span provi...
authorStefan Knoblich <s.knoblich@axsentis.de>
Wed, 31 Aug 2011 23:35:01 +0000 (01:35 +0200)
committerStefan Knoblich <s.knoblich@axsentis.de>
Wed, 31 Aug 2011 23:48:03 +0000 (01:48 +0200)
commit41b956fd2442e1f9ef3cbec7ad8332dfb2ab4cb8
tree4bd675907418c43b9a968f0cc25406d9c04c17d1
parentead5790c99c56ea3df7c8f2369de91ee664460ce
FreeTDM: Don't ftdm_safe_free() span information in ftdm_span_destroy() if span provides a custom span_destroy callback.

Doing so will cause a NULL-deref segfault while removing the current span from the
global hash (cur_span->name == NULL) in ftdm_global_destroy().

Remove all the ftdm_safe_free() calls in the custom callback part of ftdm_span_destroy() and
let ftdm_global_destroy() handle that.

NOTE: Also adds a missing ftdm_safe_free(cur_span->dtmf_hangup) to ftdm_global_destroy().

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
libs/freetdm/src/ftdm_io.c