[mod_fsv] fix leak in read failure scenario

This commit is contained in:
Mike Jerris 2020-06-08 11:07:48 -06:00 committed by Andrey Volk
parent 959e154623
commit 465344e8e3
1 changed files with 1 additions and 0 deletions

View File

@ -997,6 +997,7 @@ again:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"read error status=%d size=%u read_size=%" SWITCH_SIZE_T_FMT "\n",
status, size, read_size);
free(video_data);
goto end;
}