Software /
code /
prosody-modules
Changeset
4758:b9af1ccac98b
mod_measure_malloc: Fix accidental global variable write [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 Nov 2021 14:25:58 +0100 |
parents | 4757:8e22b858628f |
children | 4759:f649305d0bec |
files | mod_measure_malloc/mod_measure_malloc.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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