diff --git a/tests/mem-include-scan.pl b/tests/mem-include-scan.pl index f04e6a649c..44c261b9cc 100755 --- a/tests/mem-include-scan.pl +++ b/tests/mem-include-scan.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2010 - 2020, Daniel Stenberg, , et al. +# Copyright (C) 2010 - 2021, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -43,7 +43,7 @@ sub scanfile { open(F, "<$file"); while() { - if($_ =~ /(free|alloc|strdup)\(/) { + if($_ =~ /\W(free|alloc|strdup)\(/) { $memfunc++; } elsif($_ =~ /^ *# *include \"memdebug.h\"/) {