1. 10 Mar, 2022 4 commits
  2. 15 Jan, 2022 1 commit
  3. 06 Dec, 2021 2 commits
  4. 17 Jul, 2019 1 commit
  5. 26 Mar, 2019 1 commit
  6. 22 Nov, 2018 1 commit
  7. 12 Sep, 2018 2 commits
  8. 22 Jan, 2018 1 commit
  9. 26 Jan, 2017 5 commits
  10. 23 Oct, 2016 1 commit
  11. 19 Oct, 2015 1 commit
  12. 18 Aug, 2015 1 commit
  13. 29 Apr, 2015 1 commit
  14. 06 Nov, 2014 1 commit
  15. 26 Nov, 2013 1 commit
  16. 26 Oct, 2013 1 commit
  17. 15 Sep, 2013 2 commits
  18. 07 Aug, 2013 1 commit
  19. 15 Jul, 2013 1 commit
  20. 03 Jul, 2013 4 commits
  21. 02 Jul, 2013 1 commit
  22. 06 Jun, 2013 1 commit
  23. 20 Aug, 2012 1 commit
  24. 12 Jun, 2012 1 commit
  25. 01 Jun, 2012 1 commit
    • Alan Coopersmith's avatar
      Free strings allocated by GetAtomName instead of letting them leak · 15f58117
      Alan Coopersmith authored and Peter Hutterer's avatar Peter Hutterer committed
      
      
      Fixes errors reported by Parfait 0.5.0.1 bug checking tool:
      
      Error: Memory leak (CWE 401)
         Memory leak of pointer '<unknown>' allocated with XGetAtomName(dpy, info->type)
              at line 122 of src/list.c in function 'print_info'.
                pointer allocated at line 84 with XGetAtomName(dpy, info->type).
                <unknown> leaks when i >= info->num_classes at line 88.
      Error: Memory leak (CWE 401)
         Memory leak of pointer '<unknown>' allocated with XGetAtomName(dpy, a)
              at line 160 of src/property.c in function 'print_property'.
                pointer allocated at line 131 with XGetAtomName(dpy, a).
         Memory leak of pointer '<unknown>' allocated with XGetAtomName(dpy, act_type)
              at line 160 of src/property.c in function 'print_property'.
                pointer allocated at line 143 with XGetAtomName(dpy, act_type).
         Memory leak of pointer 'name' allocated with XGetAtomName(dpy, property)
              at line 160 of src/property.c in function 'print_property'.
                'name' allocated at line 61 with XGetAtomName(dpy, property).
      Error: Memory leak (CWE 401)
         Memory leak of pointer '<unknown>' allocated with XGetAtomName(dpy, a)
              at line 521 of src/property.c in function 'print_property_xi2'.
                pointer allocated at line 491 with XGetAtomName(dpy, a).
         Memory leak of pointer '<unknown>' allocated with XGetAtomName(dpy, act_type)
              at line 521 of src/property.c in function 'print_property_xi2'.
                pointer allocated at line 504 with XGetAtomName(dpy, act_type).
         Memory leak of pointer 'name' allocated with XGetAtomName(dpy, property)
              at line 521 of src/property.c in function 'print_property_xi2'.
                'name' allocated at line 428 with XGetAtomName(dpy, property).
      
      Confirmed with Solaris Studio runtime checker that "list-props" now has
      fewer leaks than before and "watch-props" no longer leaks a string every
      time a property changes.
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      15f58117
  26. 15 May, 2012 2 commits