Changeset 432


Ignore:
Timestamp:
Jun 18, 2013 4:14:13 PM (7 years ago)
Author:
kulshres
Message:

don't call free_loc() on unintialized locations

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/adouble.cpp

    r427 r432  
    173173adouble::~adouble() {
    174174#ifdef overwrite
    175     free_loc(location);
     175    if (isInit)
     176        free_loc(location);
    176177#endif
    177178}
     
    180181adub::~adub() {
    181182#ifdef overwrite
    182     free_loc(location);
     183    if (isInit)
     184        free_loc(location);
    183185#endif
    184186}
Note: See TracChangeset for help on using the changeset viewer.