comparison plugins/mod_cloud_notify.lua @ 14167:f149652cb5ff 13.0

mod_cloud_notify: Use correct stanza id when clearing table entries (mem leak) The memory leak fix in 041c7ff18f76 was insufficient, as the wrong stanza id was used to clear the table entries.
author Matthew Wild <mwild1@gmail.com>
date Tue, 19 May 2026 19:26:42 +0100
parents 041c7ff18f76
children
comparison
equal deleted inserted replaced
14166:2a050069f37b 14167:f149652cb5ff
395 end 395 end
396 id2node[stanza_id] = node; 396 id2node[stanza_id] = node;
397 id2identifier[stanza_id] = push_identifier; 397 id2identifier[stanza_id] = push_identifier;
398 module:send_iq(push_publish):next(handle_push_success, handle_push_error):finally(function () 398 module:send_iq(push_publish):next(handle_push_success, handle_push_error):finally(function ()
399 -- unhook iq handlers for this identifier (if possible) 399 -- unhook iq handlers for this identifier (if possible)
400 id2node[stanza.attr.id] = nil; 400 id2node[stanza_id] = nil;
401 id2identifier[stanza.attr.id] = nil; 401 id2identifier[stanza_id] = nil;
402 end); 402 end);
403 pushes = pushes + 1; 403 pushes = pushes + 1;
404 end 404 end
405 end 405 end
406 end 406 end