diff options
author | 2013-01-29 13:56:04 +0100 | |
---|---|---|
committer | 2013-01-29 13:56:04 +0100 | |
commit | 7afa348a8e24d4219acb8ed0a5e238d41bc20206 (patch) | |
tree | 596ccda93c2c995ad19044b6826157a11528d31a /smtpd/queue_ram.c | |
parent | add missing #include "includes.h" in imsgproc.c (diff) | |
parent | Merge branch 'coverity-fixes' (diff) | |
download | OpenSMTPD-7afa348a8e24d4219acb8ed0a5e238d41bc20206.tar.xz OpenSMTPD-7afa348a8e24d4219acb8ed0a5e238d41bc20206.zip |
Merge branch 'master' into portable
Conflicts:
smtpd/smtpd.c
Diffstat (limited to 'smtpd/queue_ram.c')
-rw-r--r-- | smtpd/queue_ram.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/smtpd/queue_ram.c b/smtpd/queue_ram.c index 859a220a..9fe22539 100644 --- a/smtpd/queue_ram.c +++ b/smtpd/queue_ram.c @@ -242,6 +242,8 @@ queue_ram_envelope(enum queue_op qop, uint64_t *evpid, char *buf, size_t len) evp->buf = malloc(len); if (evp->buf == NULL) { log_warn("warn: queue_ram_envelope: malloc"); + free(evp->buf); + free(evp); return (0); } memmove(evp->buf, buf, len); |