summaryrefslogtreecommitdiff
path: root/src/openvpn/console_systemd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/console_systemd.c')
-rw-r--r--src/openvpn/console_systemd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvpn/console_systemd.c b/src/openvpn/console_systemd.c
index e7a72ae..c7cf1ad 100644
--- a/src/openvpn/console_systemd.c
+++ b/src/openvpn/console_systemd.c
@@ -33,6 +33,7 @@
#include "syshead.h"
#include "console.h"
#include "misc.h"
+#include "run_command.h"
#include <systemd/sd-daemon.h>
@@ -84,7 +85,7 @@ get_console_input_systemd(const char *prompt, const bool echo, char *input, cons
}
close(std_out);
- argv_reset(&argv);
+ argv_free(&argv);
return ret;
}