mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-06 03:45:32 +00:00
Possible leak fix
This commit is contained in:
parent
3754e6dd12
commit
0b819badd2
1 changed files with 3 additions and 0 deletions
|
|
@ -316,6 +316,9 @@ void ndpi_set_proto_defaults(struct ndpi_detection_module_struct *ndpi_str,
|
|||
|
||||
name = ndpi_strdup(protoName);
|
||||
|
||||
if(ndpi_str->proto_defaults[protoId].protoName)
|
||||
ndpi_free(ndpi_str->proto_defaults[protoId].protoName);
|
||||
|
||||
ndpi_str->proto_defaults[protoId].protoName = name,
|
||||
ndpi_str->proto_defaults[protoId].protoCategory = protoCategory,
|
||||
ndpi_str->proto_defaults[protoId].protoId = protoId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue