From a393b78f6e0887a405010e0b9aa101d0db40ad64 Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 12 Jun 2013 17:11:22 -0700 Subject: [PATCH] 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. --- src/switch_event.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);