summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-05-25 00:04:28 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-05-25 00:04:28 +0800
commita46d67411ba03eda9f65959fc17de2300df8a241 (patch)
treeaa3417737fc75a814022af974620dd5e232a2d63 /mbbsd
parentf102bd21de63be72b6d4d6b2aef7fd34de924f49 (diff)
downloadpttbbs-a46d67411ba03eda9f65959fc17de2300df8a241.tar
pttbbs-a46d67411ba03eda9f65959fc17de2300df8a241.tar.gz
pttbbs-a46d67411ba03eda9f65959fc17de2300df8a241.tar.bz2
pttbbs-a46d67411ba03eda9f65959fc17de2300df8a241.tar.lz
pttbbs-a46d67411ba03eda9f65959fc17de2300df8a241.tar.xz
pttbbs-a46d67411ba03eda9f65959fc17de2300df8a241.tar.zst
pttbbs-a46d67411ba03eda9f65959fc17de2300df8a241.zip
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
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c2
1 files changed, 2 insertions, 0 deletions
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;