free (h->fullStatusHistory[i]);
i++;
}
+ free(h->fullStatusHistory);
h->fullStatusHistory = NULL;
h->lastStatusHistory = NULL;
h->finalStatus = NULL;
// not very clean, but working
memset(&js->pub, 0, sizeof(edg_wll_JobStat));
destroy_intJobStat(js);
+ free(js);
return 0;
err:
destroy_intJobStat(js);
+ free(js);
return -1;
}
/* XXX : just debug output - remove */
- printf("processEvent_PBS(): %s (%s), state: %s --> %s\n ",
+ /*printf("processEvent_PBS(): %s (%s), state: %s --> %s\n ",
edg_wll_EventToString(e->any.type),
(res == RET_LATE) ? "RET_LATE" : "RET_OK",
edg_wll_StatToString(old_state),
edg_wll_StatToString(js->pub.state) );
printf("\t%s\n",e->any.seqcode);
- printf("\t(last=%s)\n",js->last_seqcode);
+ printf("\t(last=%s)\n",js->last_seqcode);*/
/*----------------------------------*/