Skip to content

Commit

Permalink
ALSA: cs46xx: Fix memory leak at destructor
Browse files Browse the repository at this point in the history
The release of module object itself was forgotten.
Spotted by COVERIY CID 1162828.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jan 22, 2014
1 parent 7552f34 commit b75b151
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/cs46xx/cs46xx_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ static void free_module_desc(struct dsp_module_desc *module)
kfree(module->segments[i].data);
kfree(module->segments);
}
kfree(module);
}

/* firmware binary format:
Expand Down

0 comments on commit b75b151

Please sign in to comment.