1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00
systemd/udev
Alan Jenkins 84629ccd85 udevd: fix memory leak
Re: b99028c963 shrink struct udev_event

TEST 136: test multi matches 2
device '/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0' expecting node 'right'
==15011==
==15011== 7 bytes in 1 blocks are definitely lost in loss record 1 of 1
==15011==    at 0x47F9AB8: malloc (vg_replace_malloc.c:207)
==15011==    by 0x489CB5F: strdup (in /lib32/libc-2.7.so)
==15011==    by 0x8050F40: udev_rules_apply_to_event (udev-rules.c:1973)
==15011==    by 0x804A658: udev_event_execute_rules (udev-event.c:549)
==15011==    by 0x805A636: main (test-udev.c:100)
add:         ok
==15012==
==15012== 7 bytes in 1 blocks are definitely lost in loss record 1 of 1
==15012==    at 0x47F1AB8: malloc (vg_replace_malloc.c:207)
==15012==    by 0x4898B5F: strdup (in /lib32/libc-2.7.so)
==15012==    by 0x8050F40: udev_rules_apply_to_event (udev-rules.c:1973)
==15012==    by 0x804A9DF: udev_event_execute_rules (udev-event.c:658)
==15012==    by 0x805A636: main (test-udev.c:100)
remove:      ok

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-23 11:33:22 +02:00
..
lib shrink struct udev_event 2008-10-23 02:57:08 +02:00
.gitignore gitignore: move *.8 to subdirs 2008-09-29 05:03:43 +02:00
Makefile.am do not use the new work-in-progress parser rule matcher 2008-10-21 12:45:54 +02:00
test-udev.c selinux_init(udev) -> udev_selinux_init(udev) 2008-10-18 19:30:42 +02:00
udev-event.c shrink struct udev_event 2008-10-23 02:57:08 +02:00
udev-node.c replace in-memory rules array with match/action token list 2008-10-23 00:13:59 +02:00
udev-rules.c udevd: fix memory leak 2008-10-23 11:33:22 +02:00
udev-selinux.c selinux_init(udev) -> udev_selinux_init(udev) 2008-10-18 19:30:42 +02:00
udev-sysdeps.h rename udev source files 2008-10-16 18:13:48 +02:00
udev-util.c handle numerical owner/group string in lookup_user/group() 2008-10-22 23:59:53 +02:00
udev.h shrink struct udev_event 2008-10-23 02:57:08 +02:00
udev.xml replace in-memory rules array with match/action token list 2008-10-23 00:13:59 +02:00
udevadm-control.c use no_argument, required_argument, optional_argument in longopts 2008-10-02 16:49:05 +02:00
udevadm-info.c libudev: device - get_attr_value() -> get_sysattr_value() 2008-10-20 18:12:36 +02:00
udevadm-monitor.c use no_argument, required_argument, optional_argument in longopts 2008-10-02 16:49:05 +02:00
udevadm-settle.c use no_argument, required_argument, optional_argument in longopts 2008-10-02 16:49:05 +02:00
udevadm-test.c move udev_rules_apply_format() to udev-event.c 2008-10-18 19:19:56 +02:00
udevadm-trigger.c libudev: device - get_attr_value() -> get_sysattr_value() 2008-10-20 18:12:36 +02:00
udevadm.c selinux_init(udev) -> udev_selinux_init(udev) 2008-10-18 19:30:42 +02:00
udevadm.xml udevadm: trigger: use libudev 2008-09-30 13:43:35 +02:00
udevd.c prefix udev-util.c functions with util_* 2008-10-18 20:12:55 +02:00
udevd.xml udevadm: add --version --help options to man page, hide them as commands 2008-09-07 14:48:33 +02:00