Fix a memory leak.
This commit is contained in:
parent
f517797954
commit
800563c573
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user