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

This commit is contained in:
Andrey Volk committed 2021-03-17 19:18:33 +03:00
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';