]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Since I can't seem to locate what this might be used for, or the more correct solutio...
authorWilliam King <william.king@quentustech.com>
Thu, 13 Jun 2013 00:11:22 +0000 (17:11 -0700)
committerWilliam King <william.king@quentustech.com>
Thu, 13 Jun 2013 00:11:36 +0000 (17:11 -0700)
src/switch_event.c

index 307c6a97b304a8f2b418703e2fdec67b3d9d3004..9e8c81490ffc4c7fd0ed13d6f3d97419781296b1 100644 (file)
@@ -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);