From ecc7f131c5530ad517254dd5b24ba9b2742f69ab Mon Sep 17 00:00:00 2001 From: veplaini Date: Wed, 6 Jun 2018 11:32:55 +0100 Subject: [PATCH] fixing freeing of string --- src/csladspa.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/csladspa.cpp b/src/csladspa.cpp index 992b8a8..33bbec6 100644 --- a/src/csladspa.cpp +++ b/src/csladspa.cpp @@ -401,7 +401,7 @@ static LADSPA_Descriptor *init_descriptor(char *csdname, int plugindex) cerr << "PLUGIN LOADED\n"; return desc; } - delete[] str; + else delete[] str; } // otherwise we just delete the empty descriptors // and return NULL @@ -452,7 +452,6 @@ unsigned int CountCSD(char **csdnames) else dip = opendir(ladspa_path); } if (dip == NULL) { - free(src); return 0; } while ((dit = readdir(dip))!=NULL)