sharedspice.c: remove bug causing sigsegv
This commit is contained in:
parent
e134e9b1f9
commit
efe5dcc3ab
|
|
@ -1563,14 +1563,13 @@ int sh_vecinit(runDesc *run)
|
|||
data will be sent from sh_ExecutePerLoop() via datfcn() */
|
||||
if (!curvecvalsall) {
|
||||
curvecvalsall = TMALLOC(vecvaluesall, 1);
|
||||
curvecvalsall->veccount = veccount;
|
||||
}
|
||||
else {
|
||||
for (i = 0; i < curvecvalsall->veccount; i++)
|
||||
tfree(curvecvalsall->vecsa[i]);
|
||||
tfree(curvecvalsall->vecsa);
|
||||
}
|
||||
|
||||
curvecvalsall->veccount = veccount;
|
||||
curvecvalsall->vecsa = TMALLOC(pvecvalues, veccount);
|
||||
|
||||
for (i = 0, d = cur_run->runPlot->pl_dvecs; i < veccount; i++, d = d->v_next) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue