digigr8: fixed memory realloc issues
digigr8: fixed memory realloc issues

realloc(catalog) might free catalog, do not access it afterwards
unify catalog_tmp / catalog handling

1033337 Resource leak

gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2