From 76b2006612a597c555c7384c02373637bd6782d1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 23 Mar 2014 02:19:05 +0100 Subject: fix yet another possible memory leak --- libs/ardour/linux_vst_support.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/ardour/linux_vst_support.cc') diff --git a/libs/ardour/linux_vst_support.cc b/libs/ardour/linux_vst_support.cc index f34112e24b..35a51fa4f4 100644 --- a/libs/ardour/linux_vst_support.cc +++ b/libs/ardour/linux_vst_support.cc @@ -311,8 +311,9 @@ vstfx_instantiate (VSTHandle* fhandle, audioMasterCallback amc, void* userptr) if(fhandle == 0) { - vstfx_error( "** ERROR ** VSTFX : The handle was 0\n" ); - return 0; + vstfx_error( "** ERROR ** VSTFX : The handle was 0\n" ); + free (vstfx); + return 0; } if ((vstfx->plugin = fhandle->main_entry (amc)) == 0) -- cgit v1.2.3