Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Yesterday, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, DotBot

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Dumb Question -.-
Forum Rules | Mark all | Recent Posts

Dumb Question -.-
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Dec 20, 2002, 2:41 pm
Go to the top of the page
Go to the bottom of the page

Cray
Member
GroupMembers
Posts9
JoinedDec 20, 2002

Well, I've been doing this for a while, but I'm still stumped on one aspect of it all. So my question is, when do you know what to free in free_char? Working on memory leaks and the such, and I've added alot of new variables to characters. And this'll help me on my progress. Any help would be greatly appreciated :lol:
       
Post is unread #2 Dec 20, 2002, 5:27 pm
Go to the top of the page
Go to the bottom of the page

Orion
Master Member
GroupMembers
Posts35
JoinedNov 12, 2002

If it's not an integer or basic number, it needs to be taken care of, is the rule I live by.
       
Post is unread #3 Dec 20, 2002, 5:42 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Usually only have to free things that were allocated using STRALLOC, str_dup, or a direct malloc call. Be careful which ones you use to free them though - stuff allocated with STRALLOC needs to be freed with STRFREE, str_dup freed with DISPOSE, and direct malloc calls should be freed using the free() function. Numeric values can usually be ignored, as can strings created using ths usual char[MAX_STRING_LENGTH] method.
       
Pages:<< prev 1 next >>