]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/busctl-introspect.c
tree-wide: use coccinelle to patch a lot of code to use mfree()
authorLennart Poettering <lennart@poettering.net>
Tue, 8 Sep 2015 16:43:11 +0000 (18:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2015 06:19:27 +0000 (08:19 +0200)
commita1e58e8ee1c84b633d6d6d651d5328d4dd4eba5b
tree2c5288c0e505c561c779ea13b4d99e8101803ca2
parentda323858ef34a0216aa96f4089810053c90f09ce
tree-wide: use coccinelle to patch a lot of code to use mfree()

This replaces this:

        free(p);
        p = NULL;

by this:

        p = mfree(p);

Change generated using coccinelle. Semantic patch is added to the
sources.
42 files changed:
coccinelle/mfree.cocci [new file with mode: 0644]
src/analyze/analyze.c
src/basic/bitmap.c
src/basic/lockfile-util.c
src/basic/strv.c
src/core/automount.c
src/core/busname.c
src/core/dbus-execute.c
src/core/device.c
src/core/execute.c
src/core/load-fragment.c
src/core/main.c
src/core/manager.c
src/core/mount.c
src/core/scope.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/hostname/hostnamed.c
src/import/export-tar.c
src/import/import-raw.c
src/import/import-tar.c
src/import/pull-dkr.c
src/journal-remote/journal-gatewayd.c
src/journal-remote/journal-remote-write.c
src/journal-remote/journal-upload-journal.c
src/libsystemd/sd-bus/bus-creds.c
src/libsystemd/sd-bus/bus-message.c
src/libsystemd/sd-bus/busctl-introspect.c
src/libsystemd/sd-bus/sd-bus.c
src/libsystemd/sd-netlink/netlink-message.c
src/libudev/libudev-list.c
src/login/logind-dbus.c
src/login/logind-inhibit.c
src/login/logind-session.c
src/login/logind-user.c
src/machine/machine.c
src/network/networkd-netdev-tuntap.c
src/network/networkd-wait-online-link.c
src/shared/bus-util.c
src/shared/conf-parser.c
src/udev/udev-rules.c