diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/setconf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/setconf.c b/src/tools/setconf.c index a244c07..f778f40 100644 --- a/src/tools/setconf.c +++ b/src/tools/setconf.c @@ -45,8 +45,10 @@ static bool sync_conf(struct wgdevice *file) return false; } - if (!runtime->first_peer) + if (!runtime->first_peer) { + free_wgdevice(runtime); return true; + } file->flags &= ~WGDEVICE_REPLACE_PEERS; |