IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39433


Ignore:
Timestamp:
Mar 4, 2016, 3:44:38 PM (10 years ago)
Author:
eugene
Message:

fix double-free problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/libdvo/src/dvo_tiny_values.c

    r39380 r39433  
    7878int free_tiny_values (Catalog *catalog) {
    7979
    80   if (catalog[0].averageT) free (catalog[0].averageT);
    81   if (catalog[0].measureT) free (catalog[0].measureT);
     80  if (catalog[0].averageT) {
     81    free (catalog[0].averageT);
     82    catalog[0].averageT = NULL;
     83  }
     84  if (catalog[0].measureT) {
     85    free (catalog[0].measureT);
     86    catalog[0].measureT = NULL;
     87  }
    8288  return (TRUE);
    8389}
Note: See TracChangeset for help on using the changeset viewer.