prevent potential problems with double-free
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 24 Jan 2008 16:03:41 +0000 (16:03 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 24 Jan 2008 16:03:41 +0000 (16:03 +0000)
org.glite.lb.server/src/jobstat.c

index 65efaf5..a1deafd 100644 (file)
@@ -131,7 +131,7 @@ int edg_wll_JobStatus(
                 }
              }
        }
-       free(jobstat.pub.owner);
+       free(jobstat.pub.owner); jobstat.pub.owner = NULL;
 
        intErr = edg_wll_LoadIntState(ctx, job, -1 /*all events*/, &ijsp);
        if (!intErr) {