mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
[mod_httapi] Fix memory leak of dup_creds in httapi_sync()
This commit is contained in:
parent
3e7ba04cbe
commit
e614f08c93
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user