From fc8743e71a6b9e2b8bf44f28417a67e96ff766a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Tue, 3 Feb 2009 07:45:49 +0000 Subject: [PATCH] free received message --- org.glite.lb.client/src/notification.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 1.8.2.3