summaryrefslogtreecommitdiffstats
path: root/src/libsystemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-30 15:19:53 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-04 13:28:24 +0100
commit86ed6d1b1f68db45afc87a29c17ca0065e84cdab (patch)
treec876d0acb388e178f4ed2bcdb9a8a8e076cfd23c /src/libsystemd
parentsd-bus: use SO_PEERGROUPS when available to identify groups of peer (diff)
downloadsystemd-86ed6d1b1f68db45afc87a29c17ca0065e84cdab.tar.xz
systemd-86ed6d1b1f68db45afc87a29c17ca0065e84cdab.zip
sd-bus: let's use mfree() where we can
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-bus/sd-bus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
index 847553b6a8..3cfc60fe86 100644
--- a/src/libsystemd/sd-bus/sd-bus.c
+++ b/src/libsystemd/sd-bus/sd-bus.c
@@ -3485,8 +3485,7 @@ _public_ int sd_bus_path_decode_many(const char *path, const char *path_template
}
va_end(list);
- free(labels);
- labels = NULL;
+ labels = mfree(labels);
return 1;
}