diff --git a/libs/framework/src/bundle_archive.c b/libs/framework/src/bundle_archive.c index c8880dae0..572072961 100644 --- a/libs/framework/src/bundle_archive.c +++ b/libs/framework/src/bundle_archive.c @@ -109,7 +109,7 @@ static celix_status_t celix_bundleArchive_removeResourceCache(bundle_archive_t* fw_logCode(archive->fw->logger, CELIX_LOG_LEVEL_ERROR, status, "Failed to stat bundle archive directory '%s'", archive->resourceCacheRoot); return status; } - // assert(status == 0); + assert(status == 0); // celix_utils_deleteDirectory does not work for dangling symlinks, so handle this case separately if (S_ISLNK(st.st_mode)) { status = unlink(archive->resourceCacheRoot); diff --git a/libs/framework/src/celix_bundle_cache.c b/libs/framework/src/celix_bundle_cache.c index f69d03da3..b6191ab06 100644 --- a/libs/framework/src/celix_bundle_cache.c +++ b/libs/framework/src/celix_bundle_cache.c @@ -272,6 +272,7 @@ static void celix_bundleCache_updateIdForLocationLookupMap(celix_bundle_cache_t* } celix_properties_destroy(props); } + celix_utils_freeStringIfNotEqual(archiveRootBuffer, bundleStateProperties); } closedir(dir); }