Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ show_file

show_file

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Boborak   USA  (228 posts)  Bio
Date Thu 16 Jan 2003 11:06 PM (UTC)
Message
I did a quick search of the forums and didn't see it posted and I'm sure it's been pointed out elsewhere, bu it appears there is a minor 'descriptor' leak in show_file in stock smaug in db.c. The file is opened but never closed.

...
send_to_pager( buf, ch );
num = 0;
}
}
}

should be

...
send_to_pager( buf, ch );
num = 0;
}
fclose(fp);
}
}

Again.. probably mentioned here before, but I'll just point it out again ;-)
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 17 Jan 2003 11:40 PM (UTC)
Message
Seems to be fixed in the current source, but thanks for pointing it out.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Boborak   USA  (228 posts)  Bio
Date Reply #2 on Sat 18 Jan 2003 12:57 AM (UTC)
Message
Yea. I've noticed that too. It seems to be present in anything older then the most recent copy. I've also noticed a post about it on the SML so I'm sure the SMAUG developers have long ago fixed it in their releases. SWR1.0 also seems to be a victim of it.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,717 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.