XWIKI-9337: Memory leak in code macro