diff --git a/src/remote/remote_daemon_dispatch.c b/src/remote/remote_daemon_dispatch.c index e205c743c3826382ca3e96dcc0a32b8c3408406e..c658a6e115d56e9f2d97a2e98d60a6ac65954207 100644 --- a/src/remote/remote_daemon_dispatch.c +++ b/src/remote/remote_daemon_dispatch.c @@ -7025,8 +7025,11 @@ remoteDispatchConnectGetAllDomainStats(virNetServerPtr server ATTRIBUTE_UNUSED, rv = 0; cleanup: - if (rv < 0) + if (rv < 0) { virNetMessageSaveError(rerr); + xdr_free((xdrproc_t)xdr_remote_connect_get_all_domain_stats_ret, + (char *) ret); + } virDomainStatsRecordListFree(retStats); virObjectListFree(doms);