From ea49358cc685a18a127176838c7706573b9682aa Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 4 Jan 2026 00:03:00 +0000 Subject: [PATCH] playlist: fix missing cleanup on OOM in playlist_resume() Introduced by 3892773bd7, my fault for hitting merge too quickly... Change-Id: I18bbc3259a67664753a608a0175c59ee5a4241e0 --- apps/playlist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/playlist.c b/apps/playlist.c index c818937677..46d17b0f30 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -3171,7 +3171,7 @@ int playlist_resume(void) if (handle < 0) { splashf(HZ * 2, "%s(): OOM", __func__); - return -1; + goto out_nolock; } playlist_write_lock(playlist); @@ -3535,8 +3535,9 @@ int playlist_resume(void) out: playlist_write_unlock(playlist); - dc_thread_start(playlist, true); +out_nolock: + dc_thread_start(playlist, true); talk_buffer_set_policy(TALK_BUFFER_DEFAULT); core_free(handle); cpu_boost(false);