Fix small memory leak (#1133)

Now function definition matches the prototype in ndpi_api.h.in
This commit is contained in:
Ivan Nardi
2021-02-10 15:24:34 +01:00
committed by GitHub
parent 1e12c90c66
commit 421609475e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -3780,6 +3780,8 @@ void jitterUnitTest() {
if(trace) if(trace)
printf("%2u)\t%.3f\t%.3f\n", i, v[i], rc); printf("%2u)\t%.3f\t%.3f\n", i, v[i], rc);
} }
ndpi_jitter_free(&jitter);
} }
/* *********************************************** */ /* *********************************************** */
+1 -1
View File
@@ -1085,7 +1085,7 @@ int ndpi_jitter_init(struct ndpi_jitter_struct *s, u_int16_t num_learning_values
/* ************************************* */ /* ************************************* */
void ndpi_free_jitter(struct ndpi_jitter_struct *s) { void ndpi_jitter_free(struct ndpi_jitter_struct *s) {
ndpi_free(s->observations); ndpi_free(s->observations);
} }