From 1949e8710d5eddced74e30d5efc6516b0e56714a Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 11 Nov 2015 15:51:48 +0100 Subject: [PATCH] CID 22536: Resource leak (RESOURCE_LEAK) github issue #388 --- src/modules/autoseed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/autoseed.c b/src/modules/autoseed.c index bf56bcda9..f0af4582f 100644 --- a/src/modules/autoseed.c +++ b/src/modules/autoseed.c @@ -208,6 +208,7 @@ newfaction *read_newfactions(const char *filename) nf = calloc(sizeof(newfaction), 1); if (set_email(&nf->email, email) != 0) { log_error("Invalid email address for subscription %s: %s\n", itoa36(subscription), email); + free(nf); continue; } nf->password = _strdup(password);