# HG changeset patch # User Kim Alvefur # Date 1636291558 -3600 # Node ID b9af1ccac98bf853316e2a24df2af752165fa997 # Parent 8e22b858628f0a99d6f9100f68302e3fddc25b3a mod_measure_malloc: Fix accidental global variable write [luacheck] diff -r 8e22b858628f -r b9af1ccac98b mod_measure_malloc/mod_measure_malloc.lua --- a/mod_measure_malloc/mod_measure_malloc.lua Sun Nov 07 14:18:47 2021 +0100 +++ b/mod_measure_malloc/mod_measure_malloc.lua Sun Nov 07 14:25:58 2021 +0100 @@ -25,7 +25,7 @@ ):with_labels(); module:hook("stats-update", function () - meminfo = pposix.meminfo(); + local meminfo = pposix.meminfo(); if meminfo.allocated then allocated:with_labels("sbrk"):set(meminfo.allocated); end