Skip to content
Snippets Groups Projects
  1. May 15, 2013
  2. May 03, 2013
  3. Mar 24, 2013
  4. Mar 23, 2013
  5. Mar 08, 2013
  6. Jan 17, 2013
  7. Jan 13, 2013
  8. Jan 03, 2013
  9. Dec 28, 2012
  10. Dec 20, 2012
  11. Dec 04, 2012
  12. Nov 11, 2012
  13. Nov 02, 2012
  14. Oct 12, 2012
  15. Oct 08, 2012
  16. Oct 07, 2012
  17. Oct 06, 2012
  18. Oct 01, 2012
  19. Sep 04, 2012
  20. Aug 15, 2012
  21. Aug 07, 2012
  22. Jul 30, 2012
  23. Jul 28, 2012
  24. Jul 04, 2012
  25. Jun 20, 2012
  26. Jun 14, 2012
  27. Jun 13, 2012
  28. May 07, 2012
  29. Apr 04, 2012
  30. Mar 28, 2012
  31. Mar 16, 2012
    • Antonio Ospite's avatar
      x11grab: fix a memory leak exposed by valgrind · d3958ab4
      Antonio Ospite authored
      
      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: default avatarRonald S. Bultje <rsbultje@gmail.com>
      d3958ab4
  32. Mar 04, 2012
  33. Feb 28, 2012
Loading