Browse Source

prevent a small memory leak

pre-master-46
dwarning 8 years ago
parent
commit
aed5ba01c0
  1. 6
      src/frontend/measure.c

6
src/frontend/measure.c

@ -291,8 +291,12 @@ do_measure(
} }
/* skip param|expr measurement types for now -- will be done after other measurements */ /* skip param|expr measurement types for now -- will be done after other measurements */
if (strncmp(meastype, "param", 5) == 0 || strncmp(meastype, "expr", 4) == 0)
if (strncmp(meastype, "param", 5) == 0 || strncmp(meastype, "expr", 4) == 0) {
txfree(an_type);
txfree(resname);
txfree(meastype);
continue; continue;
}
/* skip .meas line, if analysis type from line and name of analysis performed differ */ /* skip .meas line, if analysis type from line and name of analysis performed differ */
if (strcmp(an_name, an_type) != 0) { if (strcmp(an_name, an_type) != 0) {

Loading…
Cancel
Save