X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd%2Fsd-bus%2Fbus-creds.c;h=d172dadbfd7388682834f9537c1bcdd9384eec2d;hb=606303a93ea52a70ebba55bb3152820e630f2164;hp=ea8a619c5acc19a9ab9abe2c754fbbac1bcbcdcb;hpb=1c0216696a5024db431ce397e8f2ca052084a71e;p=elogind.git diff --git a/src/libsystemd/sd-bus/bus-creds.c b/src/libsystemd/sd-bus/bus-creds.c index ea8a619c5..d172dadbf 100644 --- a/src/libsystemd/sd-bus/bus-creds.c +++ b/src/libsystemd/sd-bus/bus-creds.c @@ -29,7 +29,6 @@ #include "audit.h" #include "bus-message.h" #include "bus-util.h" -#include "time-util.h" #include "strv.h" #include "bus-creds.h" #include "bus-label.h" @@ -52,6 +51,7 @@ void bus_creds_done(sd_bus_creds *c) { free(c->user_unit); free(c->slice); free(c->unescaped_description); + free(c->supplementary_gids); free(c->well_known_names); /* note that this is an strv, but * we only free the array, not the @@ -101,7 +101,9 @@ _public_ sd_bus_creds *sd_bus_creds_unref(sd_bus_creds *c) { free(c->unique_name); free(c->cgroup_root); free(c->description); + free(c->supplementary_gids); + c->supplementary_gids = NULL; strv_free(c->well_known_names); c->well_known_names = NULL;