Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fontconfig
fontconfig
Commits
37c9c16d
Commit
37c9c16d
authored
Jul 19, 2018
by
Akira TAGOH
Browse files
Fix memory leak
parent
433718fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fcxml.c
View file @
37c9c16d
...
...
@@ -2190,6 +2190,7 @@ FcParseCacheDir (FcConfigParse *parse)
if
(
!
data
)
{
FcConfigMessage
(
parse
,
FcSevereError
,
"out of memory"
);
data
=
prefix
;
goto
bail
;
}
if
(
prefix
)
...
...
@@ -2201,7 +2202,7 @@ FcParseCacheDir (FcConfigParse *parse)
if
(
!
p
)
{
FcConfigMessage
(
parse
,
FcSevereError
,
"out of memory"
);
data
=
prefix
;
FcStrFree
(
prefix
)
;
goto
bail
;
}
prefix
=
p
;
...
...
@@ -2233,6 +2234,7 @@ FcParseCacheDir (FcConfigParse *parse)
else
if
(
strcmp
((
const
char
*
)
data
,
"WINDOWSTEMPDIR_FONTCONFIG_CACHE"
)
==
0
)
{
int
rc
;
FcStrFree
(
data
);
data
=
malloc
(
1000
);
if
(
!
data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment