--- libaitrpc/src/srv.c 2011/09/07 09:42:46 1.5.2.4 +++ libaitrpc/src/srv.c 2011/09/07 10:46:54 1.5.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: srv.c,v 1.5.2.4 2011/09/07 09:42:46 misho Exp $ +* $Id: srv.c,v 1.5.2.5 2011/09/07 10:46:54 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -723,6 +723,7 @@ rpc_srv_endServer(rpc_srv_t ** __restrict psrv) pthread_mutex_lock(&(*psrv)->srv_mtx); while ((f = (*psrv)->srv_funcs)) { (*psrv)->srv_funcs = f->func_next; + rpc_srv_destroyVars(f); free(f); } pthread_mutex_unlock(&(*psrv)->srv_mtx);