다음을 통해 공유


PREfast Warning 14 (Windows CE 5.0)

Send Feedback

14 - Leaking memory <pointer>.

This warning indicates that the specified pointer points to allocated memory or some other allocated resource that was not freed.

This warning is reported for both memory and resource leaks.

Example

Defective Source

char *p = (char *)malloc(10);

Corrected Source

char *p = (char *)malloc(10);
free (p);

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.