From 8baaac923ce7bf286d2aaedd863c2a7a7c7a32c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Mon, 23 Jun 2008 13:19:20 +0000 Subject: [PATCH] Setting freed values to NULL. Non-NULL values caused the code to crash on further free() calls down the line. --- org.glite.lb.server/src/jobstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 1.8.2.3