diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-09-01 01:49:27 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-09-01 01:49:27 +0000 |
| commit | 800563c573849021b26c0ff49c3b284e3aacca69 (patch) | |
| tree | 587c56432c5c54a6f7205560a0faba035fdd2d79 | |
| parent | f5177979544fb6a36717fa068c087b5aa2018460 (diff) | |
Notes
| -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 e70a83b6ddef3..6caabbbb884d1 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); |
