Thread: Allcoating memory and not freeing it

  1. #1
    Registered User
    Join Date
    Aug 2001

    Allcoating memory and not freeing it

    If I were to allocate memory but not free it. This causes a memory leak, right? Wouldn't I be able to free this memory back by simply reseting my computer?

  2. #2
    Join Date
    Aug 2001
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Yes, infact as soon as the program ends all the memory if freed. The only time where you will run into a problem is if you create a program that is constantly running in the background such as a utility program on a server that stays on 24/7.

    Even so, you should always free memory allocated on the free store.
    I compile code with:
    Visual Studio.NET beta2

Popular pages Recent additions subscribe to a feed