X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fvpn%2Fgnunet-daemon-vpn.c;h=ddd540cb0744874f409ff00b6c6c340252665dca;hb=4c5f0baee93fdab6471d14dc1c4f50b741157b5a;hp=2c38e636391739a02e88814cc10257492fd4cf20;hpb=f2b9b53569e26dbbd5aab101c0e58e4cc31654fe;p=oweals%2Fgnunet.git diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index 2c38e6363..ddd540cb0 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c @@ -81,7 +81,7 @@ static void restart_helper(void* cls, const struct GNUNET_SCHEDULER_TaskContext* struct vpn_cls* mycls = (struct vpn_cls*) cls; // Kill the helper - PLIBC_KILL(mycls->helper_pid, SIGTERM); + PLIBC_KILL(mycls->helper_pid, SIGKILL); GNUNET_OS_process_wait(mycls->helper_pid); // Restart the helper @@ -182,6 +182,8 @@ main (int argc, char *const *argv) "gnunet-daemon-vpn", gettext_noop ("help text"), options, &run, cls)) ? ret : 1; + + free(cls); // Make clang happy } /* end of gnunet-daemon-vpn.c */