From: Miloš Mulač Date: Tue, 3 Feb 2009 07:45:49 +0000 (+0000) Subject: free received message X-Git-Tag: glite-lb-client-java_R_1_0_0_5~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=fc8743e71a6b9e2b8bf44f28417a67e96ff766a3;p=jra1mw.git free received message --- diff --git a/org.glite.lb.client/src/notification.c b/org.glite.lb.client/src/notification.c index 469c398..3e1f047 100644 --- a/org.glite.lb.client/src/notification.c +++ b/org.glite.lb.client/src/notification.c @@ -741,7 +741,8 @@ int edg_wll_NotifReceive( if ( decode_il_msg(&ev, message) < 0 ) { CloseConnectionNotif(ctx); - return edg_wll_SetError(ctx, EDG_WLL_IL_PROTO, "decoding event string"); + edg_wll_SetError(ctx, EDG_WLL_IL_PROTO, "decoding event string"); + goto err; } event_char = ev.data; } @@ -790,6 +791,7 @@ err: free(event_char); free(jobstat_char); + free(message); return edg_wll_Error(ctx,NULL,NULL); }