[vlc-commits] dcp: Fix leak on error
Hugo Beauzée-Luyssen
git at videolan.org
Fri Dec 22 11:06:22 CET 2017
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Dec 22 10:26:25 2017 +0100| [1d9fbd069e31f94cde683692f158af2f69ba2d92] | committer: Hugo Beauzée-Luyssen
dcp: Fix leak on error
CID #1463258
(cherry picked from commit 34b86486956fd0c14104a071e9a5d5e432e7def2)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1d9fbd069e31f94cde683692f158af2f69ba2d92
---
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 92a26f1a72..9809ff9d78 100755
--- a/modules/access/dcp/dcpparser.cpp
+++ b/modules/access/dcp/dcpparser.cpp
@@ -978,6 +978,7 @@ int PKL::FindCPLs()
break;
case -1:
/* error */
+ delete cpl;
return -1;
case 0:
default:
More information about the vlc-commits
mailing list