[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 b7341da95e
commit cd7ea3a542
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, switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"read error status=%d size=%u read_size=%" SWITCH_SIZE_T_FMT "\n", "read error status=%d size=%u read_size=%" SWITCH_SIZE_T_FMT "\n",
status, size, read_size); status, size, read_size);
free(video_data);
goto end; goto end;
} }