Fixed invalid use of ndpi_free(). Sorry, my fault. (#1988)

* Fixed invalid use of ndpi_free(). Sorry, my fault.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>

* Fine tuned symbol check script.

 * added check for expected syms in modules

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>

---------

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2023-05-24 13:19:06 +02:00
committed by GitHub
parent f692342f3c
commit 334b43579e
2 changed files with 16 additions and 2 deletions
+15 -1
View File
@@ -24,7 +24,21 @@ for line in `nm -P -u "${NDPI_LIB}"`; do
if [ ! -z "${FOUND_SYMBOL}" ]; then
SKIP=0
case "${CURRENT_OBJECT}" in
'[ndpi_utils.o]'|'[ndpi_memory.o]'|'[roaring.o]') SKIP=1 ;;
'[roaring.o]')
case "${FOUND_SYMBOL}" in
'malloc'|'calloc'|'realloc'|'free') SKIP=1 ;;
esac
;;
'[ndpi_utils.o]'|'[ndpi_memory.o]'|'[roaring.o]')
case "${FOUND_SYMBOL}" in
'malloc'|'calloc'|'free') SKIP=1 ;;
esac
;;
'[gcrypt_light.o]')
case "${FOUND_SYMBOL}" in
'free') SKIP=1 ;;
esac
;;
esac
if [ ${SKIP} -eq 0 ]; then