events usage memleaks
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 3 Feb 2009 08:45:31 +0000 (08:45 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 3 Feb 2009 08:45:31 +0000 (08:45 +0000)
org.glite.lb.client/src/notification.c

index 3e1f047..392d5f9 100644 (file)
@@ -758,7 +758,6 @@ int edg_wll_NotifReceive(
        }
        start_time = check_time;
                
-       event = edg_wll_InitEvent(EDG_WLL_EVENT_NOTIFICATION);
        if (edg_wll_ParseNotifEvent(ctx, event_char, &event)) {
                goto err;
        }
@@ -786,7 +785,7 @@ err:
                edg_wll_FreeEvent(event);
                // XXX - konzultovat s honikem; podle meho by to free 
                // mel delat uz edg_wll_FreeEvent
-               //free(event);
+               free(event);
        }
 
        free(event_char);