* memory problem (Linux/malloc)
@ 2000-12-16 13:48 John Max Skaller
0 siblings, 0 replies; only message in thread
From: John Max Skaller @ 2000-12-16 13:48 UTC (permalink / raw)
To: caml-list
Um.. sorry to ask a question not directly related to Ocaml..
I'm running Linux (Redhat 6.1) The following program
appears to leak:
#include <stdlib.h>
int main(int argc, char**argv)
{
for(;;) {
void *a = malloc(100);
void *b = malloc(78);
void *c = malloc(99);
free(a); free(b); free(c);
}
}
I'm baffled. This shouldn't cause fragmentation, should it?
Does anyone know of a leak in this version of Linux/glibc/malloc?
[The leak is visible by running 'free']
--
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-18 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-16 13:48 memory problem (Linux/malloc) John Max Skaller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox