From a46d67411ba03eda9f65959fc17de2300df8a241 Mon Sep 17 00:00:00 2001 From: kcwu Date: Wed, 24 May 2006 16:04:28 +0000 Subject: r3440@kcwu: kcwu | 2006-05-25 00:04:16 +0800 fix two resource leak: fclose() not paired. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3361 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mbbsd/user.c b/mbbsd/user.c index 176d6996..7934c4da 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -171,6 +171,7 @@ user_display(const userec_t * u, int adminmode) fgets(genbuf, 200, fp); fgets(genbuf, 200, fp); prints("%12s´Ñ°ê¦Û§Ú´y­z: %s", chess_type[i], genbuf + 11); + fclose(fp); } } } @@ -1096,6 +1097,7 @@ showplans_userec(userec_t *user) i++; } + fclose(fp); if (user_query_mode == 1) { win = user->five_win; -- cgit v1.2.3