Free name of application using libcharon.
authorTobias Brunner <tobias@strongswan.org>
Tue, 15 May 2012 09:37:07 +0000 (11:37 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 May 2012 09:37:07 +0000 (11:37 +0200)
src/libcharon/daemon.c

index 7004ca7..60a3233 100644 (file)
@@ -143,6 +143,7 @@ static void destroy(private_daemon_t *this)
                                                                                        offsetof(file_logger_t, destroy));
        this->public.sys_loggers->destroy_offset(this->public.sys_loggers,
                                                                                        offsetof(sys_logger_t, destroy));
+       free((void*)this->public.name);
        free(this);
 }