summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2015-08-17 09:10:56 +0200
committerMarkus Elfring <elfring@users.sourceforge.net>2015-08-17 09:10:56 +0200
commitf00ef7f5d43980e82ed7caa1ac3530b3713cbd76 (patch)
treed46c0dbacbda7da7ad561abcf7e8d5f5946e8dc7 /src
parent0d4605ec3c9c1392bb5f0abc590b1d855df5eebb (diff)
Bug #944: Replacement of a free() call by mfree()
The function "mfree" should be called instead of "free" at a specific source code place.
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-bus/bus-message.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
index b0577cc412..7714baf045 100644
--- a/src/libsystemd/sd-bus/bus-message.c
+++ b/src/libsystemd/sd-bus/bus-message.c
@@ -143,11 +143,7 @@ static void message_free(sd_bus_message *m) {
if (m->iovec != m->iovec_fixed)
free(m->iovec);
- if (m->destination_ptr) {
- free(m->destination_ptr);
- m->destination_ptr = NULL;
- }
-
+ m->destination_ptr = mfree(m->destination_ptr);
message_reset_containers(m);
free(m->root_container.signature);
free(m->root_container.offsets);