diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-31 22:45:45 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-01-02 19:45:48 -0500 |
commit | 0349c608c839e728e15a37b2317c3f332c8a2a36 (patch) | |
tree | 7226586114b96f55c7edd97b2f3b37201f5d3bc0 /src/libsystemd-bus | |
parent | 5ce70e5bcd62e89b52485961c3699312ee4a7e0e (diff) |
bus: fix memleak in sd_bus_creds_new_from_pid
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r-- | src/libsystemd-bus/bus-creds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-creds.c b/src/libsystemd-bus/bus-creds.c index b2cf687377..5575f73d86 100644 --- a/src/libsystemd-bus/bus-creds.c +++ b/src/libsystemd-bus/bus-creds.c @@ -140,7 +140,7 @@ _public_ int sd_bus_creds_new_from_pid(pid_t pid, uint64_t mask, sd_bus_creds ** r = bus_creds_add_more(c, mask, pid, 0); if (r < 0) { - free(c); + sd_bus_creds_unref(c); return r; } |