Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

All heap blocks were freed

Name: All heap blocks were freed 2012-02-07 4:23

All heap blocks were freed -- no leaks are possible

Oh, the gratification.

Sneaky fucking leaks.

Name: Anonymous 2012-02-07 4:27

All heap blocks were freed -- no leaks are possible
Why would the fact that all heap blocks were freed this time imply that they will all be freed every time?

That would only be true if allocation happened in the same order on every execution of your program, in which case, you should not be allocating on the heap in the first place.

Name: Anonymous 2012-02-07 5:23

>>2

Why would the fact that all heap blocks were freed this time imply that they will all be freed every time?

Through thorough testing, dickbag. Consistently, every time, I get this, every argument and every combination of bytecodes in the file it reads. God damn, why are you so skeptical? I was relishing my success at automating an efficient and effective cleamup routine and you assume it took the only branch where there are free()s.

Did you consider all the mallocs happen with resources that are managed carefully in a self contained unit of memory resources so as for easy access and easy cleanup? Some people on /prog/ can program, you know.

Go play with your REPL.

Name: Anonymous 2012-02-07 5:24

>>3
s/Did you consider/Did you consider that maybe/

Name: Anonymous 2012-02-07 7:14

>>1

I know, it always feels like such an accomplishment. But then I wonder why the compiler couldn't just do it for me. Surely, if a human being could manage the complexities of manual memory management, then a compiler ought to be able to in most sane cases.

Name: Anonymous 2012-02-07 9:01

Only the amateur nogrammers of /prog/ would be proud of themselves for not having a memory leak. That's like being proud of yourself for not shitting your pants.

Name: Anonymous 2012-02-07 9:03

>>5
Use Objective-C and the compiler will do that for you.

Name: Anonymous 2012-02-07 9:11

>>7
That would explain why iPhone apps close whenever the fuck they feel like it.

Name: Anonymous 2012-02-07 9:47

>>6
I shit myself all the time. Fucking adult diapers are the shit. Feels good man.

Don't change these.
Name: Email:
Entire Thread Thread List