libvirt/src/util
Laine Stump f962e8b603 pci: eliminate memory leak in virPCIDeviceReattach
virPCIDeviceReattach was making the assumption that the dev object
given to it was one and the same with the dev object on the
inactiveDevs list. If that had been the case, it would not need to
free the dev object it removed from the inactive list, because the
caller of virPCIDeviceReattach always frees the dev object that it
passes in. Since the dev object passed in is *never* the same object
that's on the list (it is a different object with the same name and
attributes, created just for the purpose of searching for the actual
object), simply doing a "ListSteal" to remove the object from the list
results in one leaked object; we need to actually free the object
after removing it from the list.
2013-06-24 17:35:01 -04:00
..
iohelper.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
keymaps.csv Rsync keymaps.csv file with GTK-VNC 2012-01-12 20:44:55 +00:00
viralloc.c alloc: make VIR_APPEND_ELEMENT safer 2013-05-07 13:21:31 -06:00
viralloc.h alloc: make VIR_APPEND_ELEMENT safer 2013-05-07 13:21:31 -06:00
virarch.c src/utils: Remove the whitespace before ";" 2013-05-21 23:41:45 +08:00
virarch.h Add armv6l architecture to list of valid arches 2013-04-04 11:07:32 +01:00
viratomic.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
viratomic.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
viraudit.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
viraudit.h Change logging category parameter into an enum 2012-09-28 10:39:28 +01:00
virauth.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virauth.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virauthconfig.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virauthconfig.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virbitmap.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virbitmap.h util: Add a helper to check if all bits of a bitmap are clear 2013-04-06 10:14:21 +08:00
virbuffer.c util: switch virBufferTrim to void 2013-06-19 09:21:09 +02:00
virbuffer.h util: switch virBufferTrim to void 2013-06-19 09:21:09 +02:00
vircgroup.c Replace two-state local integers with bool 2013-06-06 17:22:53 +02:00
vircgroup.h Fix build breaker with ATTRIBUTE_NONNULL defs 2013-04-16 07:17:00 -04:00
vircgrouppriv.h Track symlinks for co-mounted cgroup controllers 2013-04-15 17:35:32 +01:00
vircommand.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
vircommand.h virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virconf.c syntax: prefer space after semicolon in for loop 2013-05-28 07:56:07 -06:00
virconf.h Rename conf.{c,h} to virconf.{c,h} 2012-12-21 11:17:13 +00:00
virdbus.c Convert HAVE_DBUS to WITH_DBUS 2013-01-14 13:25:47 +00:00
virdbus.h Convert HAVE_DBUS to WITH_DBUS 2013-01-14 13:25:47 +00:00
virdnsmasq.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virdnsmasq.h use client id for IPv6 DHCP host definition 2013-02-25 02:49:06 -05:00
virebtables.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virebtables.h Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virendian.h util: add virendian.h macros 2013-02-12 09:00:15 -07:00
virerror.c Define basic internal API for access control 2013-06-24 15:24:36 +01:00
virerror.h Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virevent.c docs: don't ignore virEvent API 2013-02-01 16:01:45 -07:00
virevent.h Rename event.{c,h} to virevent.{c,h} 2012-12-21 11:17:13 +00:00
vireventpoll.c src/utils: Remove the whitespace before ";" 2013-05-21 23:41:45 +08:00
vireventpoll.h Rename event_poll.{c,h} to vireventpoll.{c,h} 2012-12-21 11:17:13 +00:00
virfile.c Introduce virFilePrintf() as a portable fprintf() 2013-05-31 10:51:33 -06:00
virfile.h Introduce virFilePrintf() as a portable fprintf() 2013-05-31 10:51:33 -06:00
virhash.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virhash.h Implement virHashRemoveAll function 2012-04-19 10:21:43 -04:00
virhashcode.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virhashcode.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virhook.c syntax: prefer space after semicolon in for loop 2013-05-28 07:56:07 -06:00
virhook.h virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
viridentity.c Set process ID in system identity 2013-06-24 15:39:56 +01:00
viridentity.h Include process start time when doing polkit checks 2013-05-08 10:47:45 +01:00
virinitctl.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virinitctl.h Add APIs for talking to init via /dev/initctl 2012-11-30 19:17:30 +00:00
viriptables.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
viriptables.h net: use structs for address and port ranges 2013-02-19 14:42:18 -05:00
virjson.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virjson.h json: support removing a value from an object 2013-05-13 15:15:54 -06:00
virkeycode-mapgen.py Rewrite keycode map to avoid a struct 2013-04-08 10:03:20 +01:00
virkeycode.c Rewrite keycode map to avoid a struct 2013-04-08 10:03:20 +01:00
virkeycode.h cleanup: Don't include libvirt/libvirt.h 2013-04-17 15:50:53 +08:00
virkeyfile.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virkeyfile.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virlockspace.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virlockspace.h Rename json.{c,h} to virjson.{c,h} 2012-12-21 11:17:13 +00:00
virlog.c udev: fix crash in libudev logging 2013-06-14 13:17:27 +02:00
virlog.h udev: fix crash in libudev logging 2013-06-14 13:17:27 +02:00
virmacaddr.c util: Change virMacAddrFormat to lowercase hex characters 2013-04-02 15:53:43 +02:00
virmacaddr.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virnetdev.c netdev: accept NULL in virNetDevSetupControl 2013-06-21 20:22:07 +02:00
virnetdev.h netdev: accept NULL in virNetDevSetupControl 2013-06-21 20:22:07 +02:00
virnetdevbandwidth.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virnetdevbandwidth.h bandwidth: Create rate update function 2012-12-11 18:36:55 +01:00
virnetdevbridge.c BSD: implement bridge add/remove port and set STP 2013-06-21 10:23:28 +02:00
virnetdevbridge.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virnetdevmacvlan.c portability: use net/if.h instead of linux/if.h 2013-06-14 15:43:24 +02:00
virnetdevmacvlan.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virnetdevopenvswitch.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virnetdevopenvswitch.h virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virnetdevtap.c BSD: implement virNetDevTapCreate() and virNetDevTapDelete() 2013-06-14 16:44:31 +02:00
virnetdevtap.h qemu: Adapt qemuBuildInterfaceCommandLine to to multiqueue net 2013-05-22 17:24:27 +02:00
virnetdevveth.c util: move virFile* functions from virutil.c to virfile.c 2013-05-10 13:09:30 -04:00
virnetdevveth.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virnetdevvlan.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevvlan.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virnetdevvportprofile.c portability: use net/if.h instead of linux/if.h 2013-06-14 15:43:24 +02:00
virnetdevvportprofile.h Rename uuid.{c,h} to viruuid.{c,h} 2012-12-21 11:19:49 +00:00
virnetlink.c Remove & ban use of select() for waiting for I/O 2013-05-13 17:32:43 +01:00
virnetlink.h maint: don't use config.h in .h files 2013-06-05 05:53:25 -06:00
virnodesuspend.c Separate internal node suspend APIs from public API 2013-05-08 10:47:47 +01:00
virnodesuspend.h Separate internal node suspend APIs from public API 2013-05-08 10:47:47 +01:00
virnuma.c util: Error out if the numa nodeset is out of range 2013-04-24 23:23:31 +08:00
virnuma.h NUMA: cleanup for numa related codes 2013-03-20 19:37:00 +08:00
virobject.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virobject.h build: allow virObject to have no parent 2013-01-22 13:45:38 -07:00
virpci.c pci: eliminate memory leak in virPCIDeviceReattach 2013-06-24 17:35:01 -04:00
virpci.h pci: new utility functions 2013-06-24 17:33:38 -04:00
virpidfile.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virpidfile.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virportallocator.c src/utils: Remove the whitespace before ";" 2013-05-21 23:41:45 +08:00
virportallocator.h Add a port allocator class 2013-01-16 11:02:58 +00:00
virprocess.c Fix ordering of file open in virProcessGetNamespaces 2013-06-07 17:59:54 +01:00
virprocess.h Include process start time when doing polkit checks 2013-05-08 10:47:45 +01:00
virrandom.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virrandom.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virscsi.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virscsi.h utils: Add a helper to get the device name that sg device mapped to 2013-05-16 23:50:00 +08:00
virsexpr.c Adapt to new VIR_STRNDUP behavior 2013-05-24 17:00:39 +02:00
virsexpr.h Rename sexpr.{c,h} to virsexpr.{c,h} 2012-12-21 11:19:48 +00:00
virsocketaddr.c virSocketAddrIsWildcard: Use IN6_IS_ADDR_UNSPECIFIED correctly 2013-06-10 14:48:08 +02:00
virsocketaddr.h virsocket: Introduce virSocketAddrIsWildcard 2013-06-07 15:21:57 +02:00
virstatslinux.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virstatslinux.h Rename stats_linux.{c,h} to virstatslinux.{c,h} 2012-12-21 11:19:48 +00:00
virstoragefile.c util: add support for qcow2v3 image detection 2013-06-21 13:25:29 +02:00
virstoragefile.h Get rid of useless VIR_STORAGE_FILE_FEATURE_NONE 2013-06-24 08:44:46 +02:00
virstring.c util: fix the VIR_STRDUP when src is NULL 2013-05-28 05:57:01 -06:00
virstring.h virStrndup: Accept negative values as string length 2013-05-24 16:59:30 +02:00
virsysinfo.c syntax: prefer space after semicolon in for loop 2013-05-28 07:56:07 -06:00
virsysinfo.h Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
virthread.c Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virthread.h build: avoid non-portable cast of pthread_t 2013-05-03 06:30:22 -06:00
virthreadpool.c virCondDestroy: Lose attribute RETURN_CHECK 2013-02-08 09:12:11 +01:00
virthreadpool.h Rename threadpool.{c,h} to virthreadpool.{c,h} 2012-12-21 11:19:48 +00:00
virthreadpthread.c build: avoid non-portable cast of pthread_t 2013-05-03 06:30:22 -06:00
virthreadpthread.h Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virthreadwin32.c src/utils: Remove the whitespace before ";" 2013-05-21 23:41:45 +08:00
virthreadwin32.h Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virtime.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virtime.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virtpm.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virtpm.h Helper functions for host TPM support 2013-04-12 16:55:45 -04:00
virtypedparam.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virtypedparam.h Introduce virTypedParamsClear public API 2013-01-18 15:04:00 +01:00
viruri.c Replace two-state local integers with bool 2013-06-06 17:22:53 +02:00
viruri.h Fix crash accessing a NULL URI when looking up auth credentials 2012-09-21 10:13:53 +01:00
virusb.c usb: don't spoil decimal addresses 2013-06-03 13:56:08 +02:00
virusb.h Convert virPCIDeviceList and virUSBDeviceList into virObjectLockable 2013-02-05 19:22:26 +00:00
virutil.c Move virGetUserEnt() to where its needed 2013-06-16 14:33:44 -05:00
virutil.h util: Change virIsCapable* to return bool 2013-05-13 17:17:26 +08:00
viruuid.c syntax: prefer space after semicolon in for loop 2013-05-28 07:56:07 -06:00
viruuid.h Rename uuid.{c,h} to viruuid.{c,h} 2012-12-21 11:19:49 +00:00
virxml.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/* 2013-05-24 10:10:03 +02:00
virxml.h Rename xml.{c,h} to virxml.{c,h} 2012-12-21 11:19:50 +00:00