memory leak in elist