memleaks
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 15 Nov 2007 16:26:40 +0000 (16:26 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 15 Nov 2007 16:26:40 +0000 (16:26 +0000)
org.glite.lb.server/src/jobstat.c
org.glite.lb.server/src/query.c

index 68dd0d9..65efaf5 100644 (file)
@@ -111,6 +111,7 @@ int edg_wll_JobStatus(
        if (intErr) {
                free(md5_jobid);
                free(string_jobid);
+               free(jobstat.pub.owner);
                return edg_wll_Error(ctx,NULL,NULL);
        }
 
@@ -130,6 +131,7 @@ int edg_wll_JobStatus(
                 }
              }
        }
+       free(jobstat.pub.owner);
 
        intErr = edg_wll_LoadIntState(ctx, job, -1 /*all events*/, &ijsp);
        if (!intErr) {
@@ -367,6 +369,7 @@ int edg_wll_intJobStatus(
        if (edg_wll_QueryEventsServer(ctx,1, (const edg_wll_QueryRec **)jqra, NULL, &events)) {
                free(string_jobid);
                free(jqra);
+               free(intstat->pub.owner);
                 return edg_wll_Error(ctx, NULL, NULL);
        }
        free(jqra);
@@ -376,6 +379,7 @@ int edg_wll_intJobStatus(
 
        if (num_events == 0) {
                free(string_jobid);
+               free(intstat->pub.owner);
                return edg_wll_SetError(ctx,ENOENT,NULL);
        }
 
index 7edeb6c..67091f4 100644 (file)
@@ -1145,6 +1145,7 @@ int convert_event_head(edg_wll_Context ctx,char **f,edg_wll_Event *e)
                edg_wll_SetError(ctx,-ret,"edg_wlc_JobIdParse()");
                goto err;
        }
+       free(f[0]);
 
        e->type = atoi(f[1]);
        free(f[1]); f[1] = NULL;