mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmetad: fix leak of append on error path
This commit is contained in:
parent
6595cae6e9
commit
920352da70
@ -55,7 +55,7 @@ int buffer_append_vf(struct buffer *buf, va_list ap)
|
|||||||
|
|
||||||
if (!append ||
|
if (!append ||
|
||||||
!buffer_append(buf, append))
|
!buffer_append(buf, append))
|
||||||
return 0;
|
goto fail;
|
||||||
|
|
||||||
dm_free(append);
|
dm_free(append);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user