diff options
author | Robin Gareus <robin@gareus.org> | 2019-08-24 03:30:53 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-08-24 03:31:49 +0200 |
commit | 89f0e70b82269fe582fb727dc88cb1b3825ce0b4 (patch) | |
tree | ce072d0318140f080e109d61fbb0c242f0eb16f0 /libs/vamp-plugins | |
parent | 1ea3435de63f7583203ca817fa978f83f7749d3d (diff) |
Fix memory-leak in case of Vamp plugin setup error
Diffstat (limited to 'libs/vamp-plugins')
-rw-r--r-- | libs/vamp-plugins/TruePeak.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/vamp-plugins/TruePeak.cpp b/libs/vamp-plugins/TruePeak.cpp index 39152d1e7f..3d6c12ee2a 100644 --- a/libs/vamp-plugins/TruePeak.cpp +++ b/libs/vamp-plugins/TruePeak.cpp @@ -219,8 +219,10 @@ Resampler::setup (unsigned int fs_inp, _inmax = k; _pstep = s; return reset (); + } else { + delete[] B; + return 1; } - else return 1; } void |