]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: Avoid leaking uri_out
authorJiri Denemark <jdenemar@redhat.com>
Wed, 25 Jan 2023 14:06:33 +0000 (15:06 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 26 Jan 2023 15:11:09 +0000 (16:11 +0100)
commitd0f339170f35957e7541e5b20552d0007e150fbc
treefce9b57277511337d8ad215d089f5956686c6865
parent4849eb2220fb2171e88e014a8e63018d20a8de95
remote: Avoid leaking uri_out

In case the API returned success and a NULL pointer in uri_out, we would
leak the preallocated buffer used for storing the uri_out pointer.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/remote/remote_daemon_dispatch.c