FS-9201 [mod_skinny] fix leak in api call to list devices

This commit is contained in:
nneul at mst.edu 2016-05-25 13:57:46 -05:00
parent 0151b8eddd
commit 8339c1f980
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}