Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, Yahoo!, Yandex

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
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 >>