From: William King Date: Thu, 13 Jun 2013 00:11:22 +0000 (-0700) Subject: Since I can't seem to locate what this might be used for, or the more correct solutio... X-Git-Tag: v1.4.1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97918f473b04e7412c726888634216577cd43927;p=thirdparty%2Ffreeswitch.git Since I can't seem to locate what this might be used for, or the more correct solution, I'm going to comment it out for now. If someone can find a better solution so that this functionality would actually work, please advise. --- diff --git a/src/switch_event.c b/src/switch_event.c index 307c6a97b3..9e8c81490f 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -916,8 +916,10 @@ static switch_status_t switch_event_base_add_header(switch_event_t *event, switc if (index_ptr || (stack & SWITCH_STACK_PUSH) || (stack & SWITCH_STACK_UNSHIFT)) { if (!(header = switch_event_get_header_ptr(event, header_name)) && index_ptr) { - - header = new_header(header_name); + /* + * Removing a possible leak. But it doesn't appear this is used anywhere, and even if it were then it wouldn't be working. + header = new_header(header_name); + */ if (switch_test_flag(event, EF_UNIQ_HEADERS)) { switch_event_del_header(event, header_name);