Re: [alsa-devel] [PATCH -next] ASoC: SOF: debug: fix possible memory leak in sof_dfsentry_write()

2019-07-05 Thread Ranjani Sridharan
On Fri, 2019-07-05 at 08:16 +, Wei Yongjun wrote: > 'string' is malloced in sof_dfsentry_write() and should be freed > before leaving from the error handling cases, otherwise it will cause > memory leak. > > Fixes: 091c12e1f50c ("ASoC: SOF: debug: add new debugfs entries for > IPC flood test")

[PATCH -next] ASoC: SOF: debug: fix possible memory leak in sof_dfsentry_write()

2019-07-05 Thread Wei Yongjun
'string' is malloced in sof_dfsentry_write() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: 091c12e1f50c ("ASoC: SOF: debug: add new debugfs entries for IPC flood test") Signed-off-by: Wei Yongjun --- sound/soc/sof/debug.c | 4 ++--