Fixed memory leak in unimport channel