Everything2
Near Matches
Ignore Exact
Full Text
Everything2

free()

"free()" is also a: user

created by splidge

(idea) by splidge (7 y) (print)   ?   (I like it!) Sat Nov 13 1999 at 9:02:53

C function which frees a block of memory previously allocated by malloc.

Unfortunately it is rarely called as often as it ought to be leading to memory leaks.


(idea) by illusionist (8.1 mon) (print)   ?   (I like it!) Fri Oct 27 2000 at 8:36:41

Free() is the C equivalent of the C++ operator delete. It returns memory to the system (see writeup above). It often fills in memory with a special value, such as "f7f7f7f7", "deadbeef", "badf00d" or (whatever the implementation is), so that you can detect in a memory manager / debugger whether or not you have free'd something already. Yet another really good reason to initialize memory before you use it.


printable version
chaos

Microsoft does your mom memory leak Essential C Functions The most elusive type of problem in a C program
I'm no fucking Buddhist, but this is Enlightenment. alloca() Richard M. Stallman DEADBEEF
g_malloc warez, porn, and clipart MALLOC_CHECK_ delete
XFree calloc() Watch the K Foundation Burn a Million Quid Memory management
new RMS realloc Linux is free only if your time has no value
stdlib.h malloc malloc abuse free
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
Toaster
Penises have higher bandwidth than cable modems
geomorphology
The Texas Chain Saw Massacre
Automat
Writing and publishing
dual of a vector space
Everything Quests: Support Your Local Library
Making the Movies
John McCain
1965
The Wind That Shakes The Barley
Philosophus Stone Against the Cult of Terror!
New Writeups
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
octillion369
Death Knight(person)
XWiz
Are you hoping for a miracle?(review)
This affordable entertainment brought to you by The Everything Development Company