Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Steely Tom

memory leak!

do it in a for loop for maximum effect

Like this:

while (1) { malloc (1000); }


11 posted on 07/17/2017 11:37:16 AM PDT by Mr. K (***THERE IS NO CONSEQUENCE OF REPEALING OBAMACARE THAT IS WORSE THAN OBAMACARE ITSELF***)
[ Post Reply | Private Reply | To 7 | View Replies ]


To: Mr. K; ken in texas
Yup. Someone told me "you should check out malloc()." So I read about it, and got really excited. Immediately plugged it in all over my project, wherever I needed memory to store anything.

Unfortunately, I didn't keep reading a couple of paragraphs further, to where they talked about free().

13 posted on 07/17/2017 11:44:32 AM PDT by Steely Tom (Liberals think in propaganda)
[ Post Reply | Private Reply | To 11 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson