mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
FS-9201 [mod_skinny] fix leak in api call to list devices
This commit is contained in:
1 parent
0151b8eddd
commit
8339c1f980
1 file changed
+3
@@ -94,6 +94,7 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc < 4) {
|
if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc < 4) {
|
||||||
|
switch_safe_free(myline);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,6 +116,8 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
|
|||||||
status = SWITCH_STATUS_SUCCESS;
|
status = SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_safe_free(myline);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user