From c26b5fc10384f52bd1cd3136c21f2f5255e101f6 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a3a85e47b971e26bdf0c84086bebab3eee21d879 Author: Jacek Jendrzej Date: 2018-01-23 (Tue, 23 Jan 2018) --- 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)