aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-k12.c
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-11 18:19:48 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-11 18:19:48 +0000
commit716cc7b9edc9dd5447fff441f2e3b22fbaf6d615 (patch)
treea708431c98c244cd24863df364b2a5084febecaf /epan/dissectors/packet-k12.c
parent37072568eb3a0d1deffe6086a649b502cf24f5d9 (diff)
Close the files after reading!
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17591 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-k12.c')
-rw-r--r--epan/dissectors/packet-k12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c
index 4527ae1132..9a88e4a21b 100644
--- a/epan/dissectors/packet-k12.c
+++ b/epan/dissectors/packet-k12.c
@@ -146,6 +146,7 @@ static GHashTable* k12_load_config(const gchar* filename) {
if (( fp = fopen(filename,"r") )) {
len = fread(buffer,1,0xFFFF,fp);
+ fclose(fp);
} else {
report_open_failure(filename, errno, FALSE);
return NULL;