Skip to content

Commit

Permalink
VapourSynth: fix heap corruption on possible double delete
Browse files Browse the repository at this point in the history
  • Loading branch information
DJATOM committed Jan 16, 2021
1 parent 70a49a9 commit 2e0a870
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions source/input/vpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ VPYInput::VPYInput(InputFileInfo& info) : nextFrame(0), vpyFailed(false)
{
general_log(nullptr, "vpy", X265_LOG_ERROR, "Can't evaluate script: %s\n", vss_func.getError(script));
vpyFailed = true;
vss_func.freeScript(script);
vss_func.finalize();
return;
}

Expand Down Expand Up @@ -273,9 +271,6 @@ void VPYInput::release()
{
vpyCallbackData.isRunning = false;

if(frame0)
vsapi->freeFrame(frame0);

if(node)
vsapi->freeNode(node);

Expand Down

0 comments on commit 2e0a870

Please sign in to comment.