summaryrefslogtreecommitdiff
path: root/core/Lossless_UDP.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/Lossless_UDP.c')
-rw-r--r--core/Lossless_UDP.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c
index fa5f9144..506a06eb 100644
--- a/core/Lossless_UDP.c
+++ b/core/Lossless_UDP.c
@@ -319,6 +319,13 @@ static void free_connections(void)
319 if (connections_length == i) 319 if (connections_length == i)
320 return; 320 return;
321 321
322 if (i == 0) {
323 free(connections);
324 connections = NULL;
325 connections_length = i;
326 return;
327 }
328
322 Connection *temp; 329 Connection *temp;
323 temp = realloc(connections, sizeof(Connection) * i); 330 temp = realloc(connections, sizeof(Connection) * i);
324 331