From: mmj Date: Thu, 3 Feb 2005 15:39:40 +0000 (+1100) Subject: Init struct before usage X-Git-Tag: RELEASE_1_2_12_RC1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b01fb980c76216bca1f1f527d083703a1b68353;p=thirdparty%2Fmlmmj.git Init struct before usage --- diff --git a/src/mlmmj-bounce.c b/src/mlmmj-bounce.c index 437fad0b..a614dcd5 100644 --- a/src/mlmmj-bounce.c +++ b/src/mlmmj-bounce.c @@ -172,7 +172,7 @@ char *dsnparseaddr(const char *mailname) { int fd, indsn = 0, i; char *line, *linedup, *search, *addr = NULL; - struct email_container emails; + struct email_container emails = { 0, NULL }; fd = open(mailname, O_RDONLY); if(fd < 0) { @@ -410,6 +410,8 @@ int main(int argc, char **argv) } myfree(bfilename); + if(dsnbounce && address) + myfree(address); return EXIT_SUCCESS; }