fix memory leak (but only on malloc path)
r2428 | dcl | 2008-04-14 09:47:50 +1000 (Mon, 14 Apr 2008) | 2 lines
This commit is contained in:
12
nxscript.c
12
nxscript.c
@@ -732,12 +732,14 @@ static void putSlab(SConnection *pCon, SicsInterp *pSics, pNXScript self,
|
||||
hpars[haStart],hpars[haStart]+hpars[haLength],histData,
|
||||
hpars[haLength]*sizeof(HistInt));
|
||||
}
|
||||
if(histData){
|
||||
status = NXputslab(self->fileHandle, histData, start, size);
|
||||
if(status == NX_OK){
|
||||
written = 1;
|
||||
}
|
||||
if(histData){
|
||||
status = NXputslab(self->fileHandle, histData, start, size);
|
||||
if(status == NX_OK){
|
||||
written = 1;
|
||||
}
|
||||
if (argc > 6)
|
||||
free(histData);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user