1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Author: Bernhard Übelacker <bernhardu@mailbox.org>
Last-Update: 2023-02-04
Bug-Debian: https://bugs.debian.org/1028311
Description: Avoid calling hbf_release() twice
--- a/src/hbf.c
+++ b/src/hbf.c
@@ -126,7 +126,7 @@ hbf_load_hbf_file(HBF hbf, SEXP fontdirs
FILE *fp;
char linebuf[160], prop_string[160], *name, *file_path, *p;
char charset_name[80], charset_name2[80], charset_enc2[5], charset[90];
- char *uncomp_prog;
+ char *uncomp_prog = NULL;
int index, r, i, n;
hbf->byte2_range_start = NULL;
@@ -467,7 +467,6 @@ hbf_load_hbf_file(HBF hbf, SEXP fontdirs
Unexpected_Error:
if (uncomp_prog != NULL)
vf_close_uncompress_stream(fp);
- hbf_release(hbf);
return -1;
}
|