FS-9201 [mod_skinny] fix leak in api call to list devices
This commit is contained in:
parent
0151b8eddd
commit
8339c1f980
|
@ -94,6 +94,7 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
|
|||
return status;
|
||||
}
|
||||
if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc < 4) {
|
||||
switch_safe_free(myline);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -115,6 +116,8 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
|
|||
status = SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
switch_safe_free(myline);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue