added error handling on realloc added a missing realloc when removing entries
added error handling on realloc
added a missing realloc when removing entries

pestophagous/unofficial_scratchpad_git-cvsimport_libexif,pestophagous/unofficial_scratchpad_git-cvsimport_libexif,pestophagous/unofficial_scratchpad_git-cvsimport_libexif