mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
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>
This commit is contained in:
parent
832855354b
commit
3251627c94
@ -1269,7 +1269,7 @@ finish:
|
||||
dbufs->output_bytes_produced = total_output;
|
||||
str_info->status = str_info->prev;
|
||||
str_info->prev = STREAM_DECODE;
|
||||
str_info->decode_ibuf = NULL;
|
||||
kfree(str_info->decode_ibuf);
|
||||
str_info->decode_ibuf = NULL;
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user