diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2015-09-07 10:48:17 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-09-07 10:48:17 +0200 |
commit | 7fe2c2ec64d9ea9478d140639d66cd017d80e720 (patch) | |
tree | 5e9708a9803570a4c45c500acf88bdfe1d0a14af /libass | |
parent | db8856e6485a5f8bab23869f49477aeb2a227328 (diff) | |
download | libass-7fe2c2ec64d9ea9478d140639d66cd017d80e720.tar.bz2 libass-7fe2c2ec64d9ea9478d140639d66cd017d80e720.tar.xz |
fontconfig: fix memory leak in error path
Found by clang static analysis.
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_fontconfig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c index d91dc6c..184f090 100644 --- a/libass/ass_fontconfig.c +++ b/libass/ass_fontconfig.c @@ -289,6 +289,7 @@ ass_fontconfig_add_provider(ASS_Library *lib, ASS_FontSelector *selector, ass_msg(lib, MSGL_FATAL, "No valid fontconfig configuration found!"); FcConfigDestroy(fc->config); + free(fc); return NULL; } |