Skip to content

Commit

Permalink
fixing freeing of string
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Jun 6, 2018
1 parent ff56c33 commit ecc7f13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/csladspa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ecc7f13

Please sign in to comment.