]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/systemctl/systemctl.c
tree-wide: introduce mfree() 814/head
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 31 Jul 2015 17:56:38 +0000 (19:56 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 31 Jul 2015 17:56:38 +0000 (19:56 +0200)
commit97b11eedff9d2e17101ad453caf9e48b73246719
treeadd86c36a039f2cbeb8232908c7a0cb3ca784ea5
parentb2a0ac5e5b29c73ca7c0da23369a4769d5a91ddd
tree-wide: introduce mfree()

Pretty trivial helper which wraps free() but returns NULL, so we can
simplify this:
        free(foobar);
        foobar = NULL;
to this:
        foobar = mfree(foobar);
25 files changed:
src/basic/copy.c
src/basic/util.h
src/bus-proxyd/bus-xml-policy.c
src/core/load-fragment.c
src/core/main.c
src/core/snapshot.c
src/cryptsetup/cryptsetup.c
src/firstboot/firstboot.c
src/import/pull-dkr.c
src/journal/catalog.c
src/journal/coredumpctl.c
src/journal/journalctl.c
src/libsystemd/sd-bus/bus-match.c
src/libsystemd/sd-bus/busctl-introspect.c
src/libsystemd/sd-netlink/test-local-addresses.c
src/login/logind-dbus.c
src/nspawn/nspawn.c
src/nss-myhostname/nss-myhostname.c
src/shared/conf-parser.c
src/systemctl/systemctl.c
src/sysusers/sysusers.c
src/test/test-util.c
src/tty-ask-password-agent/tty-ask-password-agent.c
src/udev/udev-builtin-path_id.c
src/udev/udev-rules.c