shithub: libdvdcss

Download patch

ref: 417a9cb24ea0658cdb76ae28e9f86dc2347ee1d5
parent: 50a9209451c63397a2aaccf9a3ae11ae29d3d707
author: Petri Hintukainen <phintuka@gmail.com>
date: Thu Jul 16 06:57:57 EDT 2015

Fix leak

--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -505,7 +505,9 @@
 
     if( psz_target == NULL &&
       ( p_stream == NULL || p_stream_cb == NULL ) )
-        return NULL;
+    {
+        goto error;
+    }
 
     /* Initialize structure with default values. */
     dvdcss->i_fd = -1;