From: Andrey Volk Date: Thu, 21 Jan 2021 14:40:29 +0000 (+0300) Subject: [mod_httapi] Fix memory leak of dup_creds in httapi_sync() X-Git-Tag: v1.10.6^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e614f08c9342062b4bdb5dc52809d8c25eb05744;p=thirdparty%2Ffreeswitch.git [mod_httapi] Fix memory leak of dup_creds in httapi_sync() --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index 76d273d020..cc2c857a58 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -1534,6 +1534,7 @@ static switch_status_t httapi_sync(client_t *client) char *q, *p = strstr(dynamic_url, "://"); use_url++; + switch_safe_free(dup_creds); dup_creds = strdup(p+3); *p = '\0';