fix(lua/name): fix memory leak

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>