dcp: Fix leak on error
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 22 Dec 2017 09:26:25 +0000 (10:26 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 22 Dec 2017 09:26:25 +0000 (10:26 +0100)
CID #1463258

modules/access/dcp/dcpparser.cpp

index 7cb40fa..6bf9b38 100755 (executable)
@@ -981,6 +981,7 @@ int PKL::FindCPLs()
                 break;
             case -1:
                 /* error */
+                delete cpl;
                 return -1;
             case 0:
             default: