[MPlayer-cvslog] r37668 - trunk/libvo/vo_fbdev.c
reimar
subversion at mplayerhq.hu
Wed Feb 10 23:25:29 CET 2016
Author: reimar
Date: Wed Feb 10 23:25:28 2016
New Revision: 37668
Log:
vo_fbdev.c: Fix memleak in error case.
Modified:
trunk/libvo/vo_fbdev.c
Modified: trunk/libvo/vo_fbdev.c
==============================================================================
--- trunk/libvo/vo_fbdev.c Wed Feb 10 23:21:38 2016 (r37667)
+++ trunk/libvo/vo_fbdev.c Wed Feb 10 23:25:28 2016 (r37668)
@@ -900,6 +900,10 @@ static int config(uint32_t width, uint32
if (ioctl(fb_dev_fd, FBIOPUTCMAP, cmap)) {
mp_msg(MSGT_VO, MSGL_ERR, "can't put cmap: %s\n",
strerror(errno));
+ free(cmap->red);
+ free(cmap->green);
+ free(cmap->blue);
+ free(cmap);
return 1;
}
fb_cmap_changed = 1;
More information about the MPlayer-cvslog
mailing list