1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
Zdenek Kabelac 55fe07ad98 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.
2013-05-13 13:13:20 +02:00
..
2013-04-21 23:04:53 +02:00
2013-05-03 15:42:44 +02:00
2012-02-08 12:52:58 +00:00
2013-04-21 23:14:05 +02:00
2013-04-21 23:07:00 +02:00
2013-04-23 12:27:33 +02:00
2013-04-21 22:54:42 +02:00
2013-04-02 15:16:04 +02:00
2013-05-03 16:02:43 +02:00
2013-05-13 13:13:20 +02:00
2013-05-03 15:44:15 +02:00