[MPlayer-cvslog] r37626 - trunk/command.c

reimar subversion at mplayerhq.hu
Mon Feb 8 22:22:01 CET 2016


Author: reimar
Date: Mon Feb  8 22:22:01 2016
New Revision: 37626

Log:
command.c: Fix memleak in error case.

Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	Mon Feb  8 22:20:52 2016	(r37625)
+++ trunk/command.c	Mon Feb  8 22:22:01 2016	(r37626)
@@ -2549,6 +2549,7 @@ static void overlay_add(char *file, int
     if (bpp != 1 || maxval != 255) {
         mp_msg(MSGT_CPLAYER, MSGL_ERR,
                "overlay_add: file format not supported.\n");
+        free(data);
         return;
     }
     if (!overlay_source_registered) {


More information about the MPlayer-cvslog mailing list