Fixed memory leak in namec()