Fix a memory leak.

This commit is contained in:
Mike Barcroft 2002-09-01 01:49:27 +00:00
parent f517797954
commit 800563c573

View File

@ -72,8 +72,10 @@ def:
}
output = printfmt(msgverb, class, label, sev, text, action,
tag);
if (output == NULL)
if (output == NULL) {
free(msgverb);
return (MM_NOTOK);
}
if (*output != '\0')
fprintf(stderr, "%s", output);
free(msgverb);