Systemd/src
Cristian Rodríguez f42348ace7 core: fix memory leak in manager_run_generators()
If systemd is built with GCC address sanitizer or leak sanitizer
the following memory leak ocurs:

May 12 02:02:46 linux.site systemd[326]: =================================================================
May 12 02:02:46 linux.site systemd[326]: ==326==ERROR: LeakSanitizer: detected memory leaks
May 12 02:02:46 linux.site systemd[326]: Direct leak of 101 byte(s) in 3 object(s) allocated from:
May 12 02:02:46 linux.site systemd[326]: #0 0x7fd1f504993f in strdup (/usr/lib64/libasan.so.2+0x6293f)
May 12 02:02:46 linux.site systemd[326]: #1 0x55d6ffac5336 in strv_new_ap src/shared/strv.c:163
May 12 02:02:46 linux.site systemd[326]: #2 0x55d6ffac56a9 in strv_new src/shared/strv.c:185
May 12 02:02:46 linux.site systemd[326]: #3 0x55d6ffa80272 in generator_paths src/shared/path-lookup.c:223
May 12 02:02:46 linux.site systemd[326]: #4 0x55d6ff9bdb0f in manager_run_generators src/core/manager.c:2828
May 12 02:02:46 linux.site systemd[326]: #5 0x55d6ff9b1a10 in manager_startup src/core/manager.c:1121
May 12 02:02:46 linux.site systemd[326]: #6 0x55d6ff9a78e3 in main src/core/main.c:1667
May 12 02:02:46 linux.site systemd[326]: #7 0x7fd1f394e8c4 in __libc_start_main (/lib64/libc.so.6+0x208c4)
May 12 02:02:46 linux.site systemd[326]: Direct leak of 29 byte(s) in 1 object(s) allocated from:
May 12 02:02:46 linux.site systemd[326]: #0 0x7fd1f504993f in strdup (/usr/lib64/libasan.so.2+0x6293f)
May 12 02:02:46 linux.site systemd[326]: #1 0x55d6ffac5288 in strv_new_ap src/shared/strv.c:152
May 12 02:02:46 linux.site systemd[326]: #2 0x55d6ffac56a9 in strv_new src/shared/strv.c:185
May 12 02:02:46 linux.site systemd[326]: #3 0x55d6ffa80272 in generator_paths src/shared/path-lookup.c:223
May 12 02:02:46 linux.site systemd[326]: #4 0x55d6ff9bdb0f in manager_run_generators src/core/manager.c:2828
May 12 02:02:46 linux.site systemd[326]: #5 0x55d6ff9b1a10 in manager_startup src/core/manager.c:1121
May 12 02:02:46 linux.site systemd[326]: #6 0x55d6ff9a78e3 in main src/core/main.c:1667
May 12 02:02:46 linux.site systemd[326]: #7 0x7fd1f394e8c4 in __libc_start_main (/lib64/libc.so.6+0x208c4)
May 12 02:02:46 linux.site systemd[326]: SUMMARY: AddressSanitizer: 130 byte(s) leaked in 4 allocation(s).

There is a leak due to the the use of cleanup_free instead _cleanup_strv_free_
2015-05-13 16:32:55 +02:00
..
ac-power
activate remove unused includes 2015-02-23 23:53:42 +01:00
analyze core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
ask-password remove unused includes 2015-02-23 23:53:42 +01:00
backlight
binfmt remove unused includes 2015-02-23 23:53:42 +01:00
boot boot: function parameters are separated by comma 2015-05-12 17:58:59 +02:00
bootchart bootchart: kill newline characters from log_error_errno() calls 2015-04-24 21:51:43 +02:00
bus-proxyd shared: add formats-util.h 2015-04-10 23:54:48 +02:00
cgls remove unused includes 2015-02-23 23:53:42 +01:00
cgroups-agent
cgtop shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
compat-libs
console Use space after a silencing (void) 2015-03-13 23:42:17 -04:00
core core: fix memory leak in manager_run_generators() 2015-05-13 16:32:55 +02:00
cryptsetup core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
dbus1-generator bus: don't switch to kdbus if not requested 2015-05-06 18:21:51 +02:00
debug-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
delta shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
detect-virt remove unused includes 2015-02-23 23:53:42 +01:00
efi-boot-generator efi-boot-generator: set automount expire for /boot 2015-04-22 00:57:52 +02:00
escape core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
firstboot shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
fsck fsck: add enum with fsck exit codes 2015-05-12 22:09:48 +02:00
fstab-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
getty-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
gpt-auto-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
gudev treewide: Correct typos and spell plural of bus consistent 2015-05-11 15:51:30 +02:00
hibernate-resume core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
hostname sd-bus: drop bus parameter from message callback prototype 2015-04-29 18:36:25 +02:00
hwdb remove unused includes 2015-02-23 23:53:42 +01:00
import treewide: fix typos 2015-05-05 22:19:28 -04:00
initctl shared: add formats-util.h 2015-04-10 23:54:48 +02:00
journal Add audit type generated files to gitignore 2015-05-05 22:41:42 -04:00
journal-remote journal-gatewayd: use (void) to silence coverity 2015-04-12 22:46:37 -04:00
kernel-install
libsystemd treewide: Correct typos and spell plural of bus consistent 2015-05-11 15:51:30 +02:00
libsystemd-network dhcp6: remove unnecessary if check 2015-04-21 00:58:56 +02:00
libsystemd-terminal terminal: update for simpler sd-bus api's 2015-04-30 20:12:48 +02:00
libudev udevd: manager - move a few global variables into the Manager object 2015-05-12 19:16:43 +02:00
locale treewide: Correct typos and spell plural of bus consistent 2015-05-11 15:51:30 +02:00
login core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
machine machinectl: remove unused variable 2015-05-06 18:23:46 +02:00
machine-id-commit machine-id-commit: simplifications 2015-03-10 18:56:56 +01:00
machine-id-setup remove unused includes 2015-02-23 23:53:42 +01:00
modules-load modules-load: fix memory leak 2015-05-13 14:07:26 +02:00
network networkd: network_get - allow udev_device to be NULL 2015-05-12 00:43:45 +02:00
notify shared: add formats-util.h 2015-04-10 23:54:48 +02:00
nspawn nspawn: skip symlink to a combined cgroup hierarchy if it already exists 2015-05-13 16:03:07 +02:00
nss-myhostname remove unused includes 2015-02-23 23:53:42 +01:00
nss-mymachines
nss-resolve remove unused includes 2015-02-23 23:53:42 +01:00
path tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
python-systemd python-systemd: fix is_socket_inet to cope with ports 2015-04-12 10:20:36 -04:00
quotacheck shared: add process-util.[ch] 2015-04-10 23:54:49 +02:00
random-seed random-seed: minor cleanups, in particular when it comes to logging 2015-04-21 18:08:09 +02:00
rc-local-generator
remount-fs Default to /usr/bin/u?mount, configurable, rather than hard-coded /bin/u?mount. 2015-05-13 15:48:28 +02:00
reply-password remove unused includes 2015-02-23 23:53:42 +01:00
resolve tree-wide: get rid of a few more explicit bus parameters 2015-04-29 19:10:09 +02:00
resolve-host remove unused includes 2015-02-23 23:53:42 +01:00
rfkill
run core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
shared nspawn: skip symlink to a combined cgroup hierarchy if it already exists 2015-05-13 16:03:07 +02:00
sleep remove unused includes 2015-02-23 23:53:42 +01:00
socket-proxy remove unused includes 2015-02-23 23:53:42 +01:00
sysctl sysctl: don't propagate ENOENT sysctl options 2015-04-24 19:56:47 +02:00
system-update-generator remove unused includes 2015-02-23 23:53:42 +01:00
systemctl systemctl: fix check for template units 2015-05-12 00:26:14 +02:00
systemd sd-bus,sd-login: add api for querying the slice within the the user systemd instance of a process 2015-04-30 11:58:06 +02:00
sysusers shared: add formats-util.h 2015-04-10 23:54:48 +02:00
sysv-generator core: rename SystemdRunningAs to ManagerRunningAs 2015-05-11 22:51:49 +02:00
test install: when exporting prefix InstallInfo to become UnitFileInstallInfo 2015-05-11 22:53:54 +02:00
timedate timedated: remove unnecessary goto 2015-05-06 00:44:52 -04:00
timesync timesyncd: print an INFO log message when we successfully reached a time server 2015-04-08 20:14:04 +02:00
tmpfiles tmpfiles: try to handle read-only file systems gracefully 2015-05-06 00:10:40 -04:00
tty-ask-password-agent shared/utmp-wtmp: add parameter for origin tty and callback userdata 2015-04-24 17:48:12 +02:00
udev udevd: manager - move a few global variables into the Manager object 2015-05-12 19:16:43 +02:00
update-done update-done: ignore nanosecond file timestamp components, they are not reliable 2015-04-27 17:25:57 +02:00
update-utmp shared: add formats-util.h 2015-04-10 23:54:48 +02:00
user-sessions user-sessions: move into own subdir and build independently of logind 2015-02-27 17:28:03 -05:00
vconsole shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
.gitignore
Makefile