diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 9f8048be..0f06de0f 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -459,6 +459,8 @@ static int64_t read_data_beg_buffer(Packets_Array *array, Packet_Data *data) | |||
459 | memcpy(data, array->buffer[num], sizeof(Packet_Data)); | 459 | memcpy(data, array->buffer[num], sizeof(Packet_Data)); |
460 | uint32_t id = array->buffer_start; | 460 | uint32_t id = array->buffer_start; |
461 | ++array->buffer_start; | 461 | ++array->buffer_start; |
462 | free(array->buffer[num]); | ||
463 | array->buffer[num] = NULL; | ||
462 | return id; | 464 | return id; |
463 | } | 465 | } |
464 | 466 | ||