Browse Source

Avoid leaking memory if the buffer is uncompressable

pull/390/head
Hamish Coleman 4 years ago
parent
commit
7ef5d3da9e
  1. 3
      src/edge_utils.c

3
src/edge_utils.c

@ -1488,6 +1488,9 @@ void edge_send_packet2net(n2n_edge_t * eee,
memcpy (tap_pkt, compression_buffer, compression_len); memcpy (tap_pkt, compression_buffer, compression_len);
len = compression_len; len = compression_len;
}
if(compression_buffer) {
free (compression_buffer); free (compression_buffer);
} }
} }

Loading…
Cancel
Save