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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Zhang Bo <oscar.zhangbo@xxxxxxxxxx>

---

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]