diff options
author | Toni <matzeton@googlemail.com> | 2021-01-04 12:47:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 12:47:05 +0100 |
commit | 53ee6db795ae237d1a32818045c754dc912ef2e5 (patch) | |
tree | fc1741ac0eeb50d0e67c97292d2adc8803945b6a /src/include | |
parent | 3bb12fde6357136c8309e05bd08134f9440bb8ad (diff) |
Added a new API function `ndpi_free_flow_data' which free's all members of ndpi_flow_struct but not the struct itself. (#1101)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_api.h.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index d6145e99a..f5b5f15db 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -201,9 +201,17 @@ extern "C" { void ndpi_finalize_initalization(struct ndpi_detection_module_struct *ndpi_str); /** - * Frees the memory allocated in the specified flow + * Frees the dynamic memory allocated members in the specified flow * - * @par flow = the flow to deallocate + * @par flow = the flow struct which dynamic allocated members should be deallocated + * + */ + void ndpi_free_flow_data(struct ndpi_flow_struct *flow); + + /** + * Frees the dynamic memory allocated members in the specified flow and the flow struct itself + * + * @par flow = the flow struct and its dynamic allocated members that should be deallocated * */ void ndpi_free_flow(struct ndpi_flow_struct *flow); |