free received message
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 3 Feb 2009 07:45:49 +0000 (07:45 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 3 Feb 2009 07:45:49 +0000 (07:45 +0000)
org.glite.lb.client/src/notification.c

index 469c398..3e1f047 100644 (file)
@@ -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);
 }