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:
committed by
Greg Kroah-Hartman
parent
832855354b
commit
3251627c94
@@ -1269,7 +1269,7 @@ finish:
|
|||||||
dbufs->output_bytes_produced = total_output;
|
dbufs->output_bytes_produced = total_output;
|
||||||
str_info->status = str_info->prev;
|
str_info->status = str_info->prev;
|
||||||
str_info->prev = STREAM_DECODE;
|
str_info->prev = STREAM_DECODE;
|
||||||
str_info->decode_ibuf = NULL;
|
|
||||||
kfree(str_info->decode_ibuf);
|
kfree(str_info->decode_ibuf);
|
||||||
|
str_info->decode_ibuf = NULL;
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user