projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5704cd7
)
hostnamed: call our destructor _destroy(), not _clear()
author
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Apr 2020 15:43:43 +0000
(17:43 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 18 May 2020 19:12:37 +0000
(21:12 +0200)
src/hostname/hostnamed.c
patch
|
blob
|
history
diff --git
a/src/hostname/hostnamed.c
b/src/hostname/hostnamed.c
index d5fa44a76d7e4da9f97c30780d8750b75f11c6b0..e694a95a0411327e422b3001904f2f59c0904356 100644
(file)
--- a/
src/hostname/hostnamed.c
+++ b/
src/hostname/hostnamed.c
@@
-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;