diff 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
line wrap: on
line diff
--- a/plugins/mod_cloud_notify.lua	Tue May 19 19:24:53 2026 +0100
+++ b/plugins/mod_cloud_notify.lua	Tue May 19 19:26:42 2026 +0100
@@ -397,8 +397,8 @@
 				id2identifier[stanza_id] = push_identifier;
 				module:send_iq(push_publish):next(handle_push_success, handle_push_error):finally(function ()
 					-- unhook iq handlers for this identifier (if possible)
-					id2node[stanza.attr.id] = nil;
-					id2identifier[stanza.attr.id] = nil;
+					id2node[stanza_id] = nil;
+					id2identifier[stanza_id] = nil;
 				end);
 				pushes = pushes + 1;
 			end