From: Zdeněk Šustr Date: Mon, 23 Jun 2008 13:19:20 +0000 (+0000) Subject: Setting freed values to NULL. Non-NULL values caused the code to crash on further... X-Git-Tag: merge_313_5_src~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=8baaac923ce7bf286d2aaedd863c2a7a7c7a32c0;p=jra1mw.git Setting freed values to NULL. Non-NULL values caused the code to crash on further free() calls down the line. --- diff --git a/org.glite.lb.server/src/jobstat.c b/org.glite.lb.server/src/jobstat.c index 52b2585..f2ae024 100644 --- a/org.glite.lb.server/src/jobstat.c +++ b/org.glite.lb.server/src/jobstat.c @@ -370,7 +370,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); + free(intstat->pub.owner); intstat->pub.owner = NULL; return edg_wll_Error(ctx, NULL, NULL); } free(jqra); @@ -380,7 +380,7 @@ int edg_wll_intJobStatus( if (num_events == 0) { free(string_jobid); - free(intstat->pub.owner); + free(intstat->pub.owner); intstat->pub.owner = NULL; return edg_wll_SetError(ctx,ENOENT,NULL); }