From a36b0ad2d513af5b2b461bb3fe2ebf0bcadbc506 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Tue, 8 Sep 2015 07:21:17 -0400 Subject: [PATCH] tests: Resolve Coverity RESOURCE_LEAK The cleanup path did not clear the reference for sk1 and sk2 Signed-off-by: John Ferlan --- tests/virnetdaemontest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/virnetdaemontest.c b/tests/virnetdaemontest.c index fb8a6c0c0e..24cbd54531 100644 --- a/tests/virnetdaemontest.c +++ b/tests/virnetdaemontest.c @@ -125,6 +125,8 @@ testCreateServer(const char *host, int family) virObjectUnref(cln2); virObjectUnref(svc1); virObjectUnref(svc2); + virObjectUnref(sk1); + virObjectUnref(sk2); return srv; error: