1. 06 Jul, 2013 4 commits
  2. 25 Jun, 2013 2 commits
  3. 12 Jun, 2013 2 commits
  4. 08 Jun, 2013 2 commits
  5. 10 Mar, 2013 1 commit
  6. 15 Jan, 2013 3 commits
  7. 03 Jan, 2013 1 commit
  8. 21 Oct, 2012 3 commits
  9. 13 Oct, 2012 1 commit
  10. 31 May, 2012 1 commit
  11. 24 Apr, 2012 2 commits
  12. 09 Apr, 2012 1 commit
  13. 04 Apr, 2012 1 commit
  14. 14 Mar, 2012 1 commit
  15. 05 Mar, 2012 2 commits
  16. 04 Mar, 2012 1 commit
  17. 27 Feb, 2012 2 commits
  18. 24 Feb, 2012 1 commit
  19. 09 Feb, 2012 3 commits
  20. 03 Jan, 2012 1 commit
  21. 28 Nov, 2011 1 commit
    • Daniel Drake's avatar
      delete_io_handle: fix deletion of last handle · a798395a
      Daniel Drake authored
      
      
      When num_ios goes from 1 to 0, a realloc(ios, 0); call is made.
      This is equivalent to free(ios) and NULL is returned.
      
      However, the previous logic in the code incorrectly discards this NULL
      return value. When we next call new_io_handle(), realloc(ios, X) is
      called with "ios" pointing to freed memory. This causes glibc to abort.
      
      Correct this logic to detect the 1-to-0 case and handle it correctly.
      Other cases are unchanged; there is still value in checking the
      return value from realloc() as it also returns NULL on error.
      Signed-off-by: default avatarDaniel Drake <dsd@laptop.org>
      Reviewed-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      a798395a
  22. 19 Nov, 2011 2 commits
  23. 18 Nov, 2011 1 commit
  24. 09 Nov, 2011 1 commit