Scan QR code or get instant email to install app
Question:
Failure to release memory you have allocated can lead to a memory leak. Therefore, if you are using a programming language like C++ that allows you to allocate memory, make sure you deallocate that memory as soon as you are finished using it. Allocating only the variable size needed and declaring variables in which needed are good programming practices. However, failure to follow them just leads to wasteful use of memory; it doesn’t lead to a security problem like a memory leak. Although this is a good idea to prevent buffer overflows, it is not a memory management problem.
Comments