mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-12 07:33:16 +03:00
Fix memory leak of allocated bitmap in error path
Found by static analyzer.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
Version 2.02.89 -
|
Version 2.02.89 -
|
||||||
==================================
|
==================================
|
||||||
|
Fix error path bitmap leak in cmirrord import_checkpoint().
|
||||||
Log unlink() error in cmirrord remove_lockfile().
|
Log unlink() error in cmirrord remove_lockfile().
|
||||||
Remove incorrect requirement for -j or -m from lvchange error message.
|
Remove incorrect requirement for -j or -m from lvchange error message.
|
||||||
Fix unsafe table load when splitting off smaller mirror from a larger one.
|
Fix unsafe table load when splitting off smaller mirror from a larger one.
|
||||||
|
@@ -619,6 +619,7 @@ open_retry:
|
|||||||
if (rv != SA_AIS_OK) {
|
if (rv != SA_AIS_OK) {
|
||||||
LOG_ERROR("[%s] Failed to open checkpoint: %s",
|
LOG_ERROR("[%s] Failed to open checkpoint: %s",
|
||||||
SHORT_UUID(entry->name.value), str_ais_error(rv));
|
SHORT_UUID(entry->name.value), str_ais_error(rv));
|
||||||
|
free(bitmap);
|
||||||
return -EIO; /* FIXME: better error */
|
return -EIO; /* FIXME: better error */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -647,6 +648,7 @@ init_retry:
|
|||||||
if (rv != SA_AIS_OK) {
|
if (rv != SA_AIS_OK) {
|
||||||
LOG_ERROR("[%s] Sync checkpoint section creation failed: %s",
|
LOG_ERROR("[%s] Sync checkpoint section creation failed: %s",
|
||||||
SHORT_UUID(entry->name.value), str_ais_error(rv));
|
SHORT_UUID(entry->name.value), str_ais_error(rv));
|
||||||
|
free(bitmap);
|
||||||
return -EIO; /* FIXME: better error */
|
return -EIO; /* FIXME: better error */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user