diff --git a/tool/leaked-globals b/tool/leaked-globals index ab9fc99823..49791559fc 100755 --- a/tool/leaked-globals +++ b/tool/leaked-globals @@ -17,7 +17,7 @@ config = ARGV.shift count = 0 col = Colorize.new config_code = File.read(config) -REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/) +REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\((\w+)/).flatten REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code REPLACE.push('main', 'DllMain') print "Checking leaked global symbols..."