[PATCH 01/22] util: command: Introduce virCommandToStringBuf
Jano Tomko
jtomko at redhat.com
Tue Jun 15 09:04:24 UTC 2021
On 6/11/21 4:48 PM, Peter Krempa wrote:
> The new version allows passing a virBuffer to format the string into.
> This will be helpful in solving a memory lean in wrong usage of
*leak
Jano
> virCommandToString and also in tests where we need to add a newline
> after the command in certain cases.
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
> src/libvirt_private.syms | 1 +
> src/util/vircommand.c | 50 +++++++++++++++++++++++++---------------
> src/util/vircommand.h | 4 ++++
> 3 files changed, 37 insertions(+), 18 deletions(-)
More information about the libvir-list
mailing list