(backend/corestorage.c) Fix resource leak