mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
hostnamed: call our destructor _destroy(), not _clear()
This commit is contained in:
@@ -63,7 +63,7 @@ static void context_reset(Context *c) {
|
||||
c->data[p] = mfree(c->data[p]);
|
||||
}
|
||||
|
||||
static void context_clear(Context *c) {
|
||||
static void context_destroy(Context *c) {
|
||||
assert(c);
|
||||
|
||||
context_reset(c);
|
||||
@@ -785,7 +785,7 @@ static int connect_bus(Context *c, sd_event *event, sd_bus **_bus) {
|
||||
}
|
||||
|
||||
static int run(int argc, char *argv[]) {
|
||||
_cleanup_(context_clear) Context context = {};
|
||||
_cleanup_(context_destroy) Context context = {};
|
||||
_cleanup_(sd_event_unrefp) sd_event *event = NULL;
|
||||
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user