Browse Source

Merge pull request #391 from hamishcoleman/leakfix2

Avoid leaking memory if the buffer is uncompressable
pull/392/head
Luca Deri 4 years ago
committed by GitHub
parent
commit
b3d4f21c91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/edge_utils.c

3
src/edge_utils.c

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

Loading…
Cancel
Save