header bg

Scan QR code or get instant email to install app

Question:

When you are concerned about application security, what is the most important issue in memory management?

A Make sure you release any memory you allocate.
explanation

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.

Related Information

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*