prevent a small memory leak

This commit is contained in:
dwarning 2018-08-22 13:05:19 +02:00
parent 7d78cba9ef
commit aed5ba01c0
1 changed files with 5 additions and 1 deletions

View File

@ -291,8 +291,12 @@ do_measure(
}
/* 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;
}
/* skip .meas line, if analysis type from line and name of analysis performed differ */
if (strcmp(an_name, an_type) != 0) {