Fix a memory leak: table attributes weren't freed.