From: mquinson Date: Fri, 13 Jul 2007 09:37:31 +0000 (+0000) Subject: if the plugin socket creator raises an exception, remove the broken socket from the... X-Git-Tag: v3.3~1600 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0b0e99884dc8a04821a89dd5631ad077eaac6c3c if the plugin socket creator raises an exception, remove the broken socket from the set (or we'll get into trouble at finalization, when trying to destroy it) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3760 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/Transport/transport.c b/src/gras/Transport/transport.c index e668b3f32a..8c028e49c0 100644 --- a/src/gras/Transport/transport.c +++ b/src/gras/Transport/transport.c @@ -298,7 +298,9 @@ gras_socket_client_ext(const char *host, sock->outgoing?'y':'n', sock->accepting?'y':'n'); } CATCH(e) { - free(sock); + xbt_dynar_pop(((gras_trp_procdata_t) + gras_libdata_by_id(gras_trp_libdata_id))->sockets,NULL); + free(sock); RETHROW; }