From 044e3c7766e0ab3c8312ba0e56e719b59d7baeff Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 23 Jan 2018 15:47:20 +0100 Subject: [PATCH] yaft/tools/bdf.h fix resource leak --- src/gui/widget/yaft/tools/bdf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/widget/yaft/tools/bdf.h b/src/gui/widget/yaft/tools/bdf.h index 82924cd64..30d094c5f 100644 --- a/src/gui/widget/yaft/tools/bdf.h +++ b/src/gui/widget/yaft/tools/bdf.h @@ -62,6 +62,8 @@ void load_table(char *path, enum encode_t encode) sscanf(buf, "%X %X", (unsigned int *) &from, (unsigned int *) &to); convert_table[from] = to; } + if(fp) + efclose(fp); } int read_header(char *buf, struct bdf_header_t *bdf_header)