Fix a memory leak caused by the previous commit

This commit is contained in:
Akira TAGOH 2019-10-31 16:15:25 +09:00
parent c9862b6ea7
commit a45fc8a332
1 changed files with 4 additions and 0 deletions

View File

@ -397,6 +397,8 @@ FcDirCacheProcess (FcConfig *config, const FcChar8 *dir,
else else
FcStrFree (cache_hashed); FcStrFree (cache_hashed);
} }
else
FcStrFree (cache_hashed);
} }
#ifndef _WIN32 #ifndef _WIN32
else if (!retried) else if (!retried)
@ -416,6 +418,8 @@ FcDirCacheProcess (FcConfig *config, const FcChar8 *dir,
break; break;
goto retry; goto retry;
} }
else
FcStrFree (cache_hashed);
} }
#endif #endif
else else