Commit b75b1518 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: cs46xx: Fix memory leak at destructor

The release of module object itself was forgotten.
Spotted by COVERIY CID 1162828.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 7552f34a
...@@ -369,6 +369,7 @@ static void free_module_desc(struct dsp_module_desc *module) ...@@ -369,6 +369,7 @@ static void free_module_desc(struct dsp_module_desc *module)
kfree(module->segments[i].data); kfree(module->segments[i].data);
kfree(module->segments); kfree(module->segments);
} }
kfree(module);
} }
/* firmware binary format: /* firmware binary format:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment