1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Go to file
Antonio Ospite d3958ab4ed x11grab: fix a memory leak exposed by valgrind
When using "-f x11grab -i :0.0" valgrind reports a definitely lost
memory block with this message:

==31544== 5 bytes in 1 blocks are definitely lost in loss record 1 of 2
==31544==    at 0x4026E68: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31544==    by 0x4026F17: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31544==    by 0x60D399A: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.51.22.1)
==31544==    by 0x60D3A70: av_strdup (in /usr/lib/x86_64-linux-gnu/libavutil.so.51.22.1)
==31544==    by 0x4A2BE58: ??? (in /usr/lib/x86_64-linux-gnu/libavdevice.so.53.2.0)
==31544==    by 0x506D29E: avformat_open_input (in /usr/lib/x86_64-linux-gnu/libavformat.so.53.21.0)
==31544==    by 0x400A80: main (in /home/ao2/WIP/am7xxx-play/tests/a.out)

The 5 bytes lost are the ones from param = av_strdup(":0.0"), so let's
free param in the exit path.

Also check the av_strdup() return value.

Note: calling av_free(param) even when av_strdup() fails and param is
NULL is OK and keeps the code simpler without adding another label to
skip av_free().

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2012-03-16 15:39:33 -07:00
doc doc/general: update supported devices table. 2012-03-13 22:01:51 +01:00
libavcodec threads: fix old frames returned after avcodec_flush_buffers() 2012-03-16 15:38:18 -07:00
libavdevice x11grab: fix a memory leak exposed by valgrind 2012-03-16 15:39:33 -07:00
libavfilter Mark mutable static data const where appropriate. 2012-02-21 09:47:07 -08:00
libavformat lavf: don't select an attached picture as default stream for seeking. 2012-03-15 14:01:05 +01:00
libavutil x86inc: add *mp named argument support to DEFINE_ARGS. 2012-03-14 20:09:53 -07:00
libswscale swscale: convert hscale() to use named arguments. 2012-03-14 20:09:53 -07:00
presets presets: spelling error in libvpx 1080p50_60 2011-10-22 00:28:56 +02:00
tests FATE: add capability for audio encode/decode tests with fuzzy psnr comparison 2012-03-15 17:06:17 -04:00
tools Fix a bunch of common typos. 2012-03-09 22:02:49 +01:00
.gitignore Remove libpostproc. 2012-02-23 19:36:16 +01:00
avconv.c avconv: remove pointless checks. 2012-03-15 09:01:18 +01:00
avplay.c avplay: remove an unused variable. 2012-02-29 07:24:34 +01:00
avprobe.c Mark mutable static data const where appropriate. 2012-02-21 09:47:07 -08:00
avserver.c Mark mutable static data const where appropriate. 2012-02-21 09:47:07 -08:00
Changelog Windows Media Audio Lossless decoder 2012-03-02 19:10:29 +01:00
cmdutils_common_opts.h avtools: add -v as alias for -loglevel 2011-10-09 16:53:06 +01:00
cmdutils.c avconv: add -cpuflags option for setting supported cpuflags. 2012-03-06 15:03:22 +01:00
cmdutils.h avconv: add -cpuflags option for setting supported cpuflags. 2012-03-06 15:03:22 +01:00
common.mak build: remove unnecessary FFLDFLAGS variable 2011-07-11 11:39:04 +01:00
configure remove iwmmxt optimizations 2012-03-12 22:46:56 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1 cosmetics: Delete empty lines at end of file. 2012-02-09 12:26:45 +01:00
COPYING.LGPLv3
CREDITS partially rename FFmpeg to Libav 2011-03-16 21:54:39 +01:00
Doxyfile Fix a bunch of platform name and other typos. 2012-01-11 13:48:30 +01:00
INSTALL doc: clarify configure features 2011-04-07 02:54:12 +02:00
library.mak build: link test programs with static libraries 2011-12-17 23:21:08 +00:00
LICENSE Remove libpostproc. 2012-02-23 19:36:16 +01:00
Makefile Remove libpostproc. 2012-02-23 19:36:16 +01:00
README cosmetics: fix dashed line length after 070c5d0 2011-03-28 09:53:40 +02:00
RELEASE Prepare for 0.8 Release 2012-01-21 14:54:31 +01:00
version.sh Drop git- prefix from version labels 2011-06-19 19:41:23 +01:00

Libav README
------------

1) Documentation
----------------

* Read the documentation in the doc/ directory.

2) Licensing
------------

* See the LICENSE file.