[libdvdcss-devel] Fix leak
Petri Hintukainen
git at videolan.org
Wed Dec 16 09:51:16 CET 2015
libdvdcss | branch: master | Petri Hintukainen <phintuka at gmail.com> | Thu Jul 16 10:57:57 2015 +0300| [417a9cb24ea0658cdb76ae28e9f86dc2347ee1d5] | committer: Petri Hintukainen
Fix leak
> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=417a9cb24ea0658cdb76ae28e9f86dc2347ee1d5
---
src/libdvdcss.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 9a3d8ab..2f78b78 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -505,7 +505,9 @@ static dvdcss_t dvdcss_open_common ( const char *psz_target, void *p_stream,
if( psz_target == NULL &&
( p_stream == NULL || p_stream_cb == NULL ) )
- return NULL;
+ {
+ goto error;
+ }
/* Initialize structure with default values. */
dvdcss->i_fd = -1;
More information about the libdvdcss-devel
mailing list