diff options
author | Robin Gareus <robin@gareus.org> | 2014-03-23 02:19:05 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-03-23 02:19:05 +0100 |
commit | 76b2006612a597c555c7384c02373637bd6782d1 (patch) | |
tree | 59d6ea35ce1c225b26ff3371b8d913e95d414cbd /libs/ardour/linux_vst_support.cc | |
parent | dbcf22a832609f240abe943f0dcf71fbe5e2665a (diff) |
fix yet another possible memory leak
Diffstat (limited to 'libs/ardour/linux_vst_support.cc')
-rw-r--r-- | libs/ardour/linux_vst_support.cc | 5 |
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) |