From a987783b2af0f5db8b6acf4521bae383e5a0a328 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 4 Dec 2016 13:52:59 +0800 Subject: [PATCH] Fix a potential memory leak --- src/local.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/local.c b/src/local.c index cee9af49..9fb3d6e6 100644 --- a/src/local.c +++ b/src/local.c @@ -1625,6 +1625,7 @@ start_ss_local_server(profile_t profile) close(listen_ctx.fd); } + ss_free(listen_ctx.remote_addr[0]); ss_free(listen_ctx.remote_addr); #ifdef __MINGW32__