Commit 1d9fbd06 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dcp: Fix leak on error

CID #1463258

(cherry picked from commit 34b86486)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent fe637855
......@@ -978,6 +978,7 @@ int PKL::FindCPLs()
break;
case -1:
/* error */
delete cpl;
return -1;
case 0:
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment