[mod_httapi] Fix memory leak of dup_creds in httapi_sync()

This commit is contained in:
Andrey Volk 2021-01-21 17:40:29 +03:00
parent 3e7ba04cbe
commit e614f08c93
1 changed files with 1 additions and 0 deletions

View File

@ -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';