From: Anthony Liguori <aliguori@us.ibm.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] libqtest: Plug fd and memory leaks in qtest_quit()
Date: Wed, 19 Jun 2013 07:31:39 -0500 [thread overview]
Message-ID: <87ehby1duc.fsf@codemonkey.ws> (raw)
In-Reply-To: <1371627895-27046-2-git-send-email-armbru@redhat.com>
Markus Armbruster <armbru@redhat.com> writes:
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Regards,
Anthony Liguori
> ---
> tests/libqtest.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/libqtest.c b/tests/libqtest.c
> index 879ffe9..bb82069 100644
> --- a/tests/libqtest.c
> +++ b/tests/libqtest.c
> @@ -171,12 +171,16 @@ void qtest_quit(QTestState *s)
> waitpid(pid, &status, 0);
> }
>
> + close(s->fd);
> + close(s->qmp_fd);
> + g_string_free(s->rx, true);
> unlink(s->pid_file);
> unlink(s->socket_path);
> unlink(s->qmp_socket_path);
> g_free(s->pid_file);
> g_free(s->socket_path);
> g_free(s->qmp_socket_path);
> + g_free(s);
> }
>
> static void socket_sendf(int fd, const char *fmt, va_list ap)
> --
> 1.7.11.7
next prev parent reply other threads:[~2013-06-19 12:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 7:44 [Qemu-devel] [PATCH 0/2] libqtest leak fix & cleanup Markus Armbruster
2013-06-19 7:44 ` [Qemu-devel] [PATCH 1/2] libqtest: Plug fd and memory leaks in qtest_quit() Markus Armbruster
2013-06-19 12:30 ` Anthony Liguori
2013-06-19 12:31 ` Anthony Liguori [this message]
2013-06-19 7:44 ` [Qemu-devel] [PATCH 2/2] libqtest: New qtest_end() to go with qtest_start() Markus Armbruster
2013-06-19 12:36 ` Andreas Färber
2013-06-19 13:21 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehby1duc.fsf@codemonkey.ws \
--to=aliguori@us.ibm.com \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.