This is an automated email from Gerrit. Tomas Vanek (van...@fbl.cz) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4419
-- gerrit commit 9e28e1a6b45950185107afd701429af1d62755ae Author: Tomas Vanek <van...@fbl.cz> Date: Fri Feb 16 11:55:59 2018 +0100 server: remove all connections on service removal Change-Id: I726a966332383bab1dccfa4fda4cab856ca64343 Signed-off-by: Tomas Vanek <van...@fbl.cz> diff --git a/src/server/server.c b/src/server/server.c index f9ed199..20a5246 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -351,7 +351,8 @@ static int remove_services(void) /* loop service */ while (c) { - struct service *next = c->next; + while (c->connections) + remove_connection(c, c->connections); if (c->name) free(c->name); @@ -366,6 +367,8 @@ static int remove_services(void) if (c->priv) free(c->priv); + struct service *next = c->next; + /* delete service */ free(c); -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel