1
0
forked from bip/bip

remove useless calls to FREE

MOVE_STRING macro is used in order to initialize parameters, this
macro calls free when necessary.
This commit is contained in:
Pierre-Louis Bonicoli 2018-02-19 20:08:26 +01:00
parent 83d7f2acbe
commit 96f0403a2a
Signed by untrusted user: pilou
GPG Key ID: ADC2651DDACD3538

View File

@ -706,16 +706,6 @@ static int add_user(bip_t *bip, list_t *data, struct historical_directives *hds)
u->blreset_on_talk = DEFAULT_BLRESET_ON_TALK;
u->blreset_connection = DEFAULT_BLRESET_CONNECTION;
u->bip_use_notice = DEFAULT_BIP_USE_NOTICE;
} else {
FREE(u->name);
FREE(u->password);
FREE(u->default_nick);
FREE(u->default_username);
FREE(u->default_realname);
#ifdef HAVE_LIBSSL
FREE(u->ssl_check_store);
FREE(u->ssl_client_certfile);
#endif
}
u->backlog = hds->backlog;