asoc: Fix a memory leak issue when nvmem read returns invalid length
When nvmem cell read returns invalid length the allocated buffer
is not freed. Free the buffer in this scenario to fix
memory leak issue.
Change-Id: I68585c1dd45b0a40c471bf42dea201cd0ebb497f
Signed-off-by:
Aditya Bavanari <abavanar@codeaurora.org>
Loading
Please register or sign in to comment