|
Re: Programming Help!
Memory leak? You have to be really careful when using malloc. That is if you don't know what you are doing, just use "new". You never freed your allocated data.
Add:
free(Elevator_heights);
after that for loop
edit: my analogy I like to use is like feeding a kid a whole bunch of food and not letting him poop afterwards. So that stays inside of him until you let him poop or he dies (the program exits).
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Last edited by davidthefat : 22-02-2011 at 18:51.
|