Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Bing

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
619
Alexander
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,643
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 >>