Skip to content

Commit

Permalink
Opps...fix for admb-13.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Aug 9, 2022
1 parent a3a9f89 commit f3b0582
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/linad99/fvar2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ double_and_int* dlist::gradnew()
*/
void gradfree(dlink* v)
{
#if !defined(OPT_LIB)
if (!gradient_structure::instances)
{
//delete (double_and_int*)v;
v = NULL;
return;
}
#endif
gradient_structure::_instance->GRAD_LIST->append(v);
}
//prevariable::prevariable(const prevariable& t)
Expand Down

0 comments on commit f3b0582

Please sign in to comment.