[libvirt] [PATCH 2/2] util: do not set resp to NULL after VIR_FREE

Wangrui (K) moon.wangrui at huawei.com
Mon May 12 11:08:18 UTC 2014


Signed-off-by: Zhang Bo <oscar.zhangbo at huawei.com>
---
src/util/virnetlink.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c
index 4f4dedc..40912f5 100644
--- a/src/util/virnetlink.c
+++ b/src/util/virnetlink.c
@@ -271,7 +271,6 @@ int virNetlinkCommand(struct nl_msg *nl_msg,
  cleanup:
     if (rc == -1) {
         VIR_FREE(*resp);
-        *resp = NULL;
         *respbuflen = 0;
     }
--
1.7.12.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140512/3b4192a8/attachment-0001.htm>


More information about the libvir-list mailing list