SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security
Downloads:  Download this Test Case #149071

Back to the previous page... Back to the previous page

Test Case IDCandidate149071
Bad / Good / MixedBadBad test case
AuthorFortify Software, Alexander Hoole, Aurelien Delaitre
Associations
Good pair: 149072  
Replacing: 1585  
Test suite: 100  
Added byCharles Oliveira
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -g -O0 -std=gnu99 -o mem1-bad mem1-bad.c
Submission date2015-03-23
DescriptionA malloc-ed data is never freed and all pointers to the data are lost.
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak') on line(s): 40