diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 13:11:17 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 13:11:17 +0800 |
commit | 4e32766ef19ce86877a6f82e4aacb2fa93f139be (patch) | |
tree | ceb86feed6a7335bded444f8d1c1b007003dc03d /mbbsd | |
parent | a805d1b009a55b7be52a605b1b09b14f8a7c6b8c (diff) | |
download | pttbbs-4e32766ef19ce86877a6f82e4aacb2fa93f139be.tar pttbbs-4e32766ef19ce86877a6f82e4aacb2fa93f139be.tar.gz pttbbs-4e32766ef19ce86877a6f82e4aacb2fa93f139be.tar.bz2 pttbbs-4e32766ef19ce86877a6f82e4aacb2fa93f139be.tar.lz pttbbs-4e32766ef19ce86877a6f82e4aacb2fa93f139be.tar.xz pttbbs-4e32766ef19ce86877a6f82e4aacb2fa93f139be.tar.zst pttbbs-4e32766ef19ce86877a6f82e4aacb2fa93f139be.zip |
prevent memory leak
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4363 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/friend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c index b30bbd01..817cce0c 100644 --- a/mbbsd/friend.c +++ b/mbbsd/friend.c @@ -462,7 +462,7 @@ friend_edit(int type) move(0, 40); prints("(名單上限: %d 人)", friend_max[type]); count = 0; - Vector_init(&namelist, IDLEN + 1); + Vector_clear(&namelist, IDLEN + 1); if ((fp = fopen(fpath, "r"))) { move(3, 0); @@ -538,6 +538,7 @@ friend_edit(int type) } else break; } + Vector_delete(&namelist); if (dirty) { move(2, 0); outs("更新資料中..請稍候....."); |