mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix memory leaks found with valgrind
This commit is contained in:
@@ -294,8 +294,13 @@ void free_options(CommandLineOptions *options)
|
||||
if(0 != options->args.arguments)
|
||||
free(options->args.arguments);
|
||||
|
||||
if(0 != options->filenames)
|
||||
if(0 != options->filenames) {
|
||||
for(i = 0; i < options->num_files; i++) {
|
||||
if(0 != options->filenames[i])
|
||||
free(options->filenames[i]);
|
||||
}
|
||||
free(options->filenames);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user