From: Anthony Minessale Date: Fri, 8 Jul 2011 17:44:42 +0000 (-0500) Subject: FS-3386 Jeff Lenk found this one, Good Catch! X-Git-Tag: v1.2-rc1~108^2^2~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e420e17f843d4733e9f9fd8327a5fd3c754cbb2d;p=thirdparty%2Ffreeswitch.git FS-3386 Jeff Lenk found this one, Good Catch! --- diff --git a/libs/esl/src/esl_event.c b/libs/esl/src/esl_event.c index 7aa12a8cd6..abd3c2be90 100644 --- a/libs/esl/src/esl_event.c +++ b/libs/esl/src/esl_event.c @@ -311,7 +311,6 @@ ESL_DECLARE(esl_status_t) esl_event_del_header_val(esl_event_t *event, const cha if (hp->idx) { int i = 0; - hp->value = NULL; for (i = 0; i < hp->idx; i++) { FREE(hp->array[i]); @@ -642,7 +641,7 @@ ESL_DECLARE(void) esl_event_destroy(esl_event_t **event) if (this->idx) { int i = 0; - this->value = NULL; + for (i = 0; i < this->idx; i++) { FREE(this->array[i]); } diff --git a/src/switch_event.c b/src/switch_event.c index 0929be27d9..f3cf86370e 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -802,7 +802,6 @@ SWITCH_DECLARE(switch_status_t) switch_event_del_header_val(switch_event_t *even if (hp->idx) { int i = 0; - hp->value = NULL; for (i = 0; i < hp->idx; i++) { FREE(hp->array[i]); @@ -1145,7 +1144,7 @@ SWITCH_DECLARE(void) switch_event_destroy(switch_event_t **event) if (this->idx) { int i = 0; - this->value = NULL; + for (i = 0; i < this->idx; i++) { FREE(this->array[i]); }