Fix memory leak in Variable::compute_atom
This commit is contained in:
@ -971,6 +971,7 @@ void Variable::compute_atom(int ivar, int igroup,
|
||||
} else vstore = reader[ivar]->fixstore->vstore;
|
||||
|
||||
if (result == NULL) {
|
||||
if (style[ivar] == ATOM) free_tree(tree);
|
||||
eval_in_progress[ivar] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user