summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-10-17 16:03:02 -0400
committerirungentoo <irungentoo@gmail.com>2014-10-17 16:03:02 -0400
commit418bb2b19430866b3e1f44036907ae9d119e1d62 (patch)
tree466951d657cdad61515111a90d2b5bdd2d3c3232
parent87130997cda2e37a1df17af4a4e5d16d2abfbf1b (diff)
parent0ce68b994e4c7f46fe08b5cd1b8493c97eb5654f (diff)
Merge branch 'master' of https://github.com/xor2003/toxcore
-rw-r--r--toxav/msi.c2
-rw-r--r--toxcore/LAN_discovery.c4
-rw-r--r--toxcore/TCP_server.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/toxav/msi.c b/toxav/msi.c
index 5efaf147..7f390435 100644
--- a/toxav/msi.c
+++ b/toxav/msi.c
@@ -699,6 +699,8 @@ static void timer_terminate_session(TimerHandler *handler)
699 free(handler->timers); 699 free(handler->timers);
700 700
701 pthread_mutex_destroy( &handler->mutex ); 701 pthread_mutex_destroy( &handler->mutex );
702
703 free(handler);
702} 704}
703 705
704/** 706/**
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index 3c05fe8d..436b16fd 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -86,6 +86,10 @@ static void fetch_broadcast_info(uint16_t port)
86 pAdapter = pAdapter->Next; 86 pAdapter = pAdapter->Next;
87 } 87 }
88 } 88 }
89
90 if (pAdapterInfo) {
91 free(pAdapterInfo);
92 }
89} 93}
90 94
91#elif defined(__linux__) 95#elif defined(__linux__)
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index 5dae1262..c7bccab7 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -805,6 +805,7 @@ static int handle_TCP_packet(TCP_Server *TCP_server, uint32_t con_id, const uint
805 return -1; 805 return -1;
806 806
807 IP_Port source; 807 IP_Port source;
808 source.port = 0; // dummy initialise
808 source.ip.family = TCP_ONION_FAMILY; 809 source.ip.family = TCP_ONION_FAMILY;
809 source.ip.ip6.uint32[0] = con_id; 810 source.ip.ip6.uint32[0] = con_id;
810 source.ip.ip6.uint64[1] = con->identifier; 811 source.ip.ip6.uint64[1] = con->identifier;