mirror of
https://github.com/ntop/n2n.git
synced 2024-10-18 15:42:49 +05:30
Merge pull request #390 from hamishcoleman/leakfix
Avoid leaking memory if the buffer is uncompressable
This commit is contained in:
commit
3c98328618
@ -1488,6 +1488,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…
Reference in New Issue
Block a user