diff options
Diffstat (limited to 'lib/libc/gen/fmtmsg.c')
-rw-r--r-- | lib/libc/gen/fmtmsg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/fmtmsg.c b/lib/libc/gen/fmtmsg.c index e70a83b..6caabbb 100644 --- a/lib/libc/gen/fmtmsg.c +++ b/lib/libc/gen/fmtmsg.c @@ -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); |