Close URLClassLoader if Expansion class was not found

This commit is contained in:
Vaishnav Anil 2021-06-25 05:08:14 +05:30
parent 09e68e7510
commit df8583df57

View File

@ -67,8 +67,11 @@ public class FileUtil {
} }
} }
} }
if (classes.isEmpty()) {
return classes.isEmpty() ? null : classes.get(0); loader.close();
return null;
}
return classes.get(0);
} }
} }