When priv allocation fails in audio_open(), the previously allocated upper->status is not freed, causing a memory leak. Add cleanup code in the error path to free upper->status when allocation fails. Signed-off-by: cenzhanquan1 <cenzhanquan1@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Makefile | ||
| audio.c | ||
| audio_comp.c | ||
| pcm_decode.c | ||