mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 08:14:13 +00:00
[mod_httapi] Fix memory leak of dup_creds in httapi_sync()
This commit is contained in:
1 parent
3e7ba04cbe
commit
e614f08c93
1 file changed
+1
@@ -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';
|
||||
|
||||
|
||||
Reference in new issue
Block a user