8006006: [parfait] Memory leak at hotspot/src/share/tools/launcher/wildcard.c
A simple fix to add FileList_free(fl) before returning NULL. Reviewed-by: zgu, coleenp, minqi
This commit is contained in:
parent
e1383d4931
commit
5f93d0e84c
@ -368,8 +368,10 @@ wildcardFileList(const char *wildcard)
|
||||
const char *basename;
|
||||
FileList fl = FileList_new(16);
|
||||
WildcardIterator it = WildcardIterator_for(wildcard);
|
||||
if (it == NULL)
|
||||
if (it == NULL) {
|
||||
FileList_free(fl);
|
||||
return NULL;
|
||||
}
|
||||
while ((basename = WildcardIterator_next(it)) != NULL)
|
||||
if (isJarFileName(basename))
|
||||
FileList_add(fl, wildcardConcat(wildcard, basename));
|
||||
|
Loading…
x
Reference in New Issue
Block a user