diff --git a/shellinabox/service.c b/shellinabox/service.c index 5cbb1b7..e0a3dd7 100644 --- a/shellinabox/service.c +++ b/shellinabox/service.c @@ -137,6 +137,7 @@ void initService(struct Service *service, const char *arg) { { int size = (tmp - ptr + 1); free(host); + free(sshPort); host = malloc(size); memset(host, 0, size); memcpy(host, ptr , size - 1);