ndpiReader: fix memory leak

Change the working directory of `ndpiReader` in the Github Actions so
that it can load the domain suffix list during `domainsUnitTest()`
This commit is contained in:
Nardi Ivan 2024-01-15 19:49:27 +01:00
parent d29c2f3ad1
commit b22fa558ff
2 changed files with 3 additions and 3 deletions

View file

@ -5649,9 +5649,9 @@ void domainsUnitTest() {
assert(strcmp(ndpi_get_host_domain_suffix(ndpi_info_mod, "www.unipi.it"), "it") == 0);
assert(strcmp(ndpi_get_host_domain_suffix(ndpi_info_mod, "mail.apple.com"), "com") == 0);
assert(strcmp(ndpi_get_host_domain_suffix(ndpi_info_mod, "www.bbc.co.uk"), "co.uk") == 0);
ndpi_exit_detection_module(ndpi_info_mod);
}
ndpi_exit_detection_module(ndpi_info_mod);
}
/* *********************************************** */