Skip to content

Commit

Permalink
Fix memory leak on module load
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Nov 5, 2024
1 parent 66a3e8a commit b6c88a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ OutputModule *load_output_module(const char *mod_name, const char *mod_prog,
module_conf_dir = g_strdup_printf("%s/modules",
SpeechdOptions.conf_dir);
MSG(4, "%s does not exist, looking in %s", module->configfilename, module_conf_dir);
g_free(module->configfilename);
module->configfilename =
(char *)spd_get_path(mod_cfgfile, module_conf_dir);
g_free(module_conf_dir);
Expand Down

0 comments on commit b6c88a6

Please sign in to comment.