]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
rebinding: clarify comment about *_selected arrays
authorPetr Špaček <petr.spacek@nic.cz>
Wed, 10 Jul 2019 07:06:41 +0000 (09:06 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 10 Jul 2019 09:57:12 +0000 (11:57 +0200)
modules/rebinding/rebinding.lua

index 1252549a2bc89514ec9d47404b5462581d7421ce..967abe44eaba72ea1420d9e36cc8cc671945151a 100644 (file)
@@ -70,6 +70,8 @@ end
 local function refuse(req)
        -- we are deleting packet in consume() phase so other modules
        -- might have chosen some RRs from the original packet already
+       -- *_selected arrays are in mempool
+       -- so explicit deallocation is not necessary
        req.answ_selected.len = 0
        req.auth_selected.len = 0
        req.add_selected.len = 0