]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix file handle leak in glstore_loadfile().
authorGunnar Beutner <redacted>
Sat, 8 Feb 2014 07:21:56 +0000 (08:21 +0100)
committerGunnar Beutner <redacted>
Sat, 8 Feb 2014 07:21:56 +0000 (08:21 +0100)
glines/glines_store.c

index 2e7472b7d5a73eee5b253ddd7152685fa93ce381..a52f51bc4151f7129ec0437773b3ac0fde66b9a5 100644 (file)
@@ -74,6 +74,8 @@ static int glstore_loadfile(const char *file) {
     glinelist = gl;
   }
 
+  fclose(fp);
+
   return count;
 }