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:
Douglas Clowes
2008-04-14 09:47:50 +10:00
parent d34b441f14
commit f6892bbab3

View File

@@ -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);
}
}
/*