chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-bus: sync kdbus.h (ABI break)
[elogind.git]
/
src
/
libsystemd
/
sd-bus
/
bus-creds.c
diff --git
a/src/libsystemd/sd-bus/bus-creds.c
b/src/libsystemd/sd-bus/bus-creds.c
index a08391bfc2ae2e47b23743d9e13d8cd1f57a8448..d172dadbfd7388682834f9537c1bcdd9384eec2d 100644
(file)
--- a/
src/libsystemd/sd-bus/bus-creds.c
+++ b/
src/libsystemd/sd-bus/bus-creds.c
@@
-51,6
+51,7
@@
void bus_creds_done(sd_bus_creds *c) {
free(c->user_unit);
free(c->slice);
free(c->unescaped_description);
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
free(c->well_known_names); /* note that this is an strv, but
* we only free the array, not the
@@
-100,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->unique_name);
free(c->cgroup_root);
free(c->description);
+
free(c->supplementary_gids);
free(c->supplementary_gids);
+ c->supplementary_gids = NULL;
strv_free(c->well_known_names);
c->well_known_names = NULL;
strv_free(c->well_known_names);
c->well_known_names = NULL;