[vlc-commits] dcp: Fix leak on error
Hugo Beauzée-Luyssen
git at videolan.org
Fri Dec 22 10:50:46 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Dec 22 10:26:25 2017 +0100| [34b86486956fd0c14104a071e9a5d5e432e7def2] | committer: Hugo Beauzée-Luyssen
dcp: Fix leak on error
CID #1463258
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=34b86486956fd0c14104a071e9a5d5e432e7def2
---
modules/access/dcp/dcpparser.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/dcp/dcpparser.cpp b/modules/access/dcp/dcpparser.cpp
index 7cb40fa3c8..6bf9b38a1e 100755
--- a/modules/access/dcp/dcpparser.cpp
+++ b/modules/access/dcp/dcpparser.cpp
@@ -981,6 +981,7 @@ int PKL::FindCPLs()
break;
case -1:
/* error */
+ delete cpl;
return -1;
case 0:
default:
More information about the vlc-commits
mailing list