diff -r 51de2e3a1037 -r e50acb436a8d jdk/src/share/bin/wildcard.c --- a/jdk/src/share/bin/wildcard.c Mon Nov 19 13:17:40 2012 +0000 +++ b/jdk/src/share/bin/wildcard.c Tue Nov 20 09:26:38 2012 +0000 @@ -356,8 +356,13 @@ const char *basename; FileList fl = FileList_new(16); WildcardIterator it = WildcardIterator_for(wildcard); + if (it == NULL) + { + FileList_free(fl); return NULL; + } + while ((basename = WildcardIterator_next(it)) != NULL) if (isJarFileName(basename)) FileList_add(fl, wildcardConcat(wildcard, basename));