mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[hb-subset] Fix a resource leak
Part of https://github.com/harfbuzz/harfbuzz/issues/4832
This commit is contained in:
parent
e25fa0bff5
commit
39ea4cdd77
1 changed files with 3 additions and 0 deletions
|
@ -794,6 +794,7 @@ parse_file_for (const char *name,
|
|||
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_FAILED,
|
||||
"Failed reading file `%s': %s",
|
||||
arg, strerror (errno));
|
||||
fclose (fp);
|
||||
return false;
|
||||
}
|
||||
g_string_append_c (gs, '\0');
|
||||
|
@ -814,6 +815,8 @@ parse_file_for (const char *name,
|
|||
|
||||
g_string_free (gs, false);
|
||||
|
||||
fclose (fp);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue