CID 22536: Resource leak (RESOURCE_LEAK)

github issue #388
This commit is contained in:
Enno Rehling 2015-11-11 15:51:48 +01:00
parent fc73da4ae4
commit 1949e8710d
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ newfaction *read_newfactions(const char *filename)
nf = calloc(sizeof(newfaction), 1); nf = calloc(sizeof(newfaction), 1);
if (set_email(&nf->email, email) != 0) { if (set_email(&nf->email, email) != 0) {
log_error("Invalid email address for subscription %s: %s\n", itoa36(subscription), email); log_error("Invalid email address for subscription %s: %s\n", itoa36(subscription), email);
free(nf);
continue; continue;
} }
nf->password = _strdup(password); nf->password = _strdup(password);