diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-05-13 12:59:38 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2013-05-13 13:13:20 +0200 |
commit | 55fe07ad98315d9471a86affd0680749e349a0a6 (patch) | |
tree | df4e026a59c189165920d1d2d19aae15ccd54ea2 /WHATS_NEW | |
parent | e926f22457774596d6051aa9e8ee22b884f2299d (diff) | |
download | lvm2-55fe07ad98315d9471a86affd0680749e349a0a6.tar.gz |
mm: fix leak in fail path
If the dm_realloc would fail, the already allocate _maps_buffer
memory would have been lost (overwritten with NULL).
Fix this by using temporary line buffer.
Also add a minor cleanup to set end of buffer to '\0',
only when we really know the file size fits the preallocated buffer.
Diffstat (limited to 'WHATS_NEW')
-rw-r--r-- | WHATS_NEW | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Fix memory resource leak in memlocking error path. Fix premature DM version checking which caused useless mapper/control access. Add "active" LV reporting field to show activation state. Add "monitor" segment reporting field to show dmevent monitoring status. |