diff --git a/src/moab/MAM.c b/src/moab/MAM.c index 703a3b0..9a5b30a 100644 --- a/src/moab/MAM.c +++ b/src/moab/MAM.c @@ -540,7 +540,7 @@ int MAMAllocJDebit( if (J->Cred.Q != NULL) { AE = NULL; - MXMLCreateE(&AE,(char *)MS3JobAttr[A->Version][mjaQOS]); + MXMLCreateE(&AE,(char *)MS3JobAttr[A->Version][mjaQOSReq]); MXMLSetVal(AE,(void *)J->Cred.Q->Name,mdfString); MXMLAddE(JE,AE); } diff --git a/src/moab/MFile.c b/src/moab/MFile.c index 37c8fca..993e81b 100644 --- a/src/moab/MFile.c +++ b/src/moab/MFile.c @@ -186,9 +186,10 @@ char *MFULoad( BufSize = ReadCount * BlockSize; - DBG(5,fCORE) DPrint("INFO: new file '%s' opened (%d bytes)\n", + DBG(5,fCORE) DPrint("INFO: new file '%s' opened with %d bytes (ReadCount = %d)\n", FileName, - BufSize); + BufSize, + ReadCount); if ((ptr = (char *)malloc(BufSize + 1)) == NULL) { diff --git a/src/moab/MPBSI.c b/src/moab/MPBSI.c index 92d9978..e1006e6 100644 --- a/src/moab/MPBSI.c +++ b/src/moab/MPBSI.c @@ -1048,6 +1048,8 @@ int __MPBSSystemQuery( } /* END for (AP) */ } /* END for (SP) */ + pbs_statfree(Server); + return(SUCCESS); } /* END __MPBSSystemQuery() */ diff --git a/src/server/Server.c b/src/server/Server.c index b5ce008..77fea49 100644 --- a/src/server/Server.c +++ b/src/server/Server.c @@ -116,6 +116,8 @@ int main( if ((ArgV[aindex] == NULL) || (aindex >= 1024)) break; + tmpArgV[0] = NULL; + MUStrDup(&tmpArgV[aindex],ArgV[aindex]); }