summaryrefslogtreecommitdiff
path: root/libs/ardour/linux_vst_support.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-03-23 02:19:05 +0100
committerRobin Gareus <robin@gareus.org>2014-03-23 02:19:05 +0100
commit76b2006612a597c555c7384c02373637bd6782d1 (patch)
tree59d6ea35ce1c225b26ff3371b8d913e95d414cbd /libs/ardour/linux_vst_support.cc
parentdbcf22a832609f240abe943f0dcf71fbe5e2665a (diff)
fix yet another possible memory leak
Diffstat (limited to 'libs/ardour/linux_vst_support.cc')
-rw-r--r--libs/ardour/linux_vst_support.cc5
1 files changed, 3 insertions, 2 deletions
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)