diff options
Diffstat (limited to 'src/plugins/relay/relay-server.c')
-rw-r--r-- | src/plugins/relay/relay-server.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/relay/relay-server.c b/src/plugins/relay/relay-server.c index fac396da3..0cfe1c394 100644 --- a/src/plugins/relay/relay-server.c +++ b/src/plugins/relay/relay-server.c @@ -478,10 +478,8 @@ error: close (client_fd); end: - if (relay_password) - free (relay_password); - if (relay_totp_secret) - free (relay_totp_secret); + free (relay_password); + free (relay_totp_secret); return WEECHAT_RC_OK; } @@ -966,10 +964,8 @@ relay_server_free (struct t_relay_server *server) /* free data */ relay_server_close_socket (server); - if (server->protocol_string) - free (server->protocol_string); - if (server->protocol_args) - free (server->protocol_args); + free (server->protocol_string); + free (server->protocol_args); free (server->path); free (server); |