tablehelper: Fixed variable leak