commit 09690d889629260a0404cd89d74d372d430bc6e6
parent ba9c5760a590a3cdbaeed755b5c71dcb51829cc1
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 29 Oct 2009 12:34:02 +0000
From:
Eric Sesterhenn <eric.sesterhenn@lsexperts.de>
To:
christian@grothoff.org
Date:
Today 13:07:40
Attachments:
libmicro.diff
Spam Status: Spamassassin 0% probability of being spam.
Full report:
No, score=-2.6 required=7.0 tests=BAYES_00 autolearn=ham version=3.2.5-tuminfo_1
hi,
attached patch fixes two leaks of retVal in error paths found by cppcheck.
Regards, Eric
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
@@ -1221,6 +1221,7 @@ MHD_start_daemon_va (unsigned int options,
#if HAVE_MESSAGES
fprintf (stderr, "AF_INET6 not supported\n");
#endif
+ free (retVal);
return NULL;
}
#endif
@@ -1245,6 +1246,7 @@ MHD_start_daemon_va (unsigned int options,
FD_SETSIZE);
#endif
CLOSE (socket_fd);
+ free (retVal);
return NULL;
}
if ((SETSOCKOPT (socket_fd,