Re: [PATCH] util: close the ioctl socket at the end of if(Get|Set)MacAddress

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

 



On 07/06/2011 07:31 AM, Matthias Bolte wrote:
2011/7/6 Laine Stump<laine@xxxxxxxxx>:
Otherwise this will leak an fd each time one of these functions is
called.
---
  src/util/interface.c |   36 ++++++++++++++++++++++++++----------
  1 files changed, 26 insertions(+), 10 deletions(-)
+
+err_exit:
+    VIR_FORCE_CLOSE(fd);
+    return rc;
  }
HACKING suggests to call the label cleanup instead of err_exit in both
functions.


Yeah, but all the other functions in that file had err_exit, and I wanted to be consistent within the file, but didn't want to rename everything.


ACK, with the labels renamed.

Only if you'll ACK a separate patch that renames the other labels :-)

--
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]