From e677bbc89e208004a833873436931adca7359fef Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Sun, 12 Oct 2014 23:31:20 -0400 Subject: [PATCH] Fixed a typo --- other/bootstrap_daemon/tox-bootstrapd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/other/bootstrap_daemon/tox-bootstrapd.c b/other/bootstrap_daemon/tox-bootstrapd.c index 4cc1426e..40fbf62a 100644 --- a/other/bootstrap_daemon/tox-bootstrapd.c +++ b/other/bootstrap_daemon/tox-bootstrapd.c @@ -165,8 +165,8 @@ void parse_tcp_relay_ports_config(config_t *cfg, uint16_t **tcp_relay_ports, int if ((*tcp_relay_port_count) > 0) { *tcp_relay_ports = realloc(*tcp_relay_ports, (*tcp_relay_port_count) * sizeof(uint16_t)); } else { - free(*tcp_relay_port); - *tcp_relay_port = NULL; + free(*tcp_relay_ports); + *tcp_relay_ports = NULL; } return; @@ -219,8 +219,8 @@ void parse_tcp_relay_ports_config(config_t *cfg, uint16_t **tcp_relay_ports, int if ((*tcp_relay_port_count) > 0) { *tcp_relay_ports = realloc(*tcp_relay_ports, (*tcp_relay_port_count) * sizeof(uint16_t)); } else { - free(*tcp_relay_port); - *tcp_relay_port = NULL; + free(*tcp_relay_ports); + *tcp_relay_ports = NULL; } }