1. 02 Jun, 2019 1 commit
  2. 10 Feb, 2019 1 commit
  3. 22 Nov, 2018 1 commit
  4. 17 Nov, 2018 1 commit
  5. 24 Sep, 2017 1 commit
  6. 26 Jan, 2017 3 commits
  7. 17 Jan, 2015 1 commit
  8. 30 Dec, 2014 2 commits
    • Alan Coopersmith's avatar
      Stop memory leak in XmuWriteBitmapDataToFile() · dacae587
      Alan Coopersmith authored
      StripFilename() allocates a new string for its result, so after we're
      done with it, free it instead of just losing the pointer to it.
      
      Fixes errors found by Oracle Parfait 1.5.1 bug checking tool:
      
      Error: Memory leak (CWE 401)
         Memory leak of pointer basename allocated with StripFilename(filename)
              at line 712 of Bitmap.c in function 'XmuWriteBitmapDataToFile'.
                basename allocated at line 691 with StripFilename(filename).
                basename leaks when i >= data_length at line 702.
      Error: Memory leak (CWE 401)
         Memory leak of pointer basename allocated with StripFilename(filename)
              at line 715 of Bitmap.c in function 'XmuWriteBitmapDataToFile'.
                basename allocated at line 691 with StripFilename(filename).
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      dacae587
    • Alan Coopersmith's avatar
      Stop memory leaks from XtNewString(StripFilename(filename)) · 8df1a843
      Alan Coopersmith authored
      StripFilename() already allocates a new string for its result,
      we don't need to duplicate it and then lose the pointer to the
      first one.
      
      Fixes errors found by Oracle Parfait 1.5.1 bug checking tool:
      
      Error: Memory leak (CWE 401)
         Memory leak of pointer pointer allocated with StripFilename(filename)
              at line 1119 of Bitmap.c in function 'BWReadFile'.
                pointer allocated at line 1106 with StripFilename(filename).
                pointer leaks when StripFilename(filename) != NULL at line 1106.
      Error: Memory leak (CWE 401)
         Memory leak of pointer pointer allocated with StripFilename(filename)
              at line 1119 of Bitmap.c in function 'BWReadFile'.
                pointer allocated at line 1106 with StripFilename(filename).
      
      Error: Memory leak (CWE 401)
         Memory leak of pointer pointer allocated with StripFilename(filename)
              at line 1222 of Bitmap.c in function 'BWWriteFile'.
                pointer allocated at line 1202 with StripFilename(filename).
                pointer leaks when StripFilename(filename) != NULL at line 1202.
      Error: Memory leak (CWE 401)
         Memory leak of pointer pointer allocated with StripFilename(filename)
              at line 1222 of Bitmap.c in function 'BWWriteFile'.
                pointer allocated at line 1202 with StripFilename(filename).
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      8df1a843
  9. 02 Jun, 2014 2 commits
  10. 02 Jan, 2014 5 commits
  11. 23 Nov, 2013 1 commit
  12. 26 Oct, 2013 1 commit
  13. 06 Jun, 2013 1 commit
  14. 18 May, 2013 1 commit
  15. 21 Apr, 2013 3 commits
  16. 21 Jan, 2013 1 commit
  17. 22 Sep, 2012 1 commit
  18. 30 May, 2012 1 commit
  19. 09 Mar, 2012 1 commit
  20. 21 Dec, 2011 1 commit
  21. 15 Oct, 2011 5 commits
  22. 05 Mar, 2011 1 commit
  23. 18 Feb, 2011 1 commit
  24. 15 Jan, 2011 3 commits