Staging: intel_sst: fix memory leak
authorDan Carpenter <error27@gmail.com>
Sat, 13 Nov 2010 08:58:26 +0000 (11:58 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 20:25:53 +0000 (12:25 -0800)
commit3251627c943f1cfc5bfad7c38d4e8d85cf44c6d8
treec64fb446d9c778499a494bb06711affbae88f446
parent832855354b5863d141ecfc563e78063978c6f29f
Staging: intel_sst: fix memory leak

The original code set "str_info->decode_ibuf" to NULL so the kfree() is
no-op.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Harsha Priya <priya.harsha@intel.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/intel_sst/intel_sst_stream_encoded.c