Fixes CVE-2026-30998 Fixes: Resource leak Found-by: Xinghang Lv Signed-off-by: James Almer <jamrial@gmail.com>