On 12/17/18 3:55 PM, John Ferlan wrote:
Using a combination of VIR_ALLOC and VIR_STRDUP into a local
variable and then jumping to error on the VIR_STRDUP before
assiging it into the @data would cause a memory leak. Let's
just avoid that by assiging directly into @data.
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
src/remote/remote_daemon_dispatch.c | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
ACK
Michal