]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/qtest/vhost-user-test: Fix memory leaks
authorThomas Huth <thuth@redhat.com>
Thu, 16 Jan 2020 14:07:36 +0000 (15:07 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 16 Jan 2020 16:01:25 +0000 (17:01 +0100)
commit99fd3178a0d6f8edbf22b5e82b3e5134f93c4084
treef8546f0f6f28d662b217b505166f3cd8c441a997
parent16c5c6928ff53bd95e6504301ef6c285501531e7
tests/qtest/vhost-user-test: Fix memory leaks

Do not allocate resources in case we return early, and make sure
to free dest_cmdline at the end.

Reported-by: Euler Robot <euler.robot@huawei.com>
Reported-by: Pan Nengyuan <pannengyuan@huawei.com>
Message-Id: <20200116140736.9498-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/vhost-user-test.c