Checking Use of Memory
Specifications
- only char *gname;
- . . .
- void setName (temp char *pname) char *gname;
Code
- void setName (char *pname) { gname = pname;}
LCLint error messages
- sample.c:2:3: Only storage gname not released before assignment: gname = pname
- sample.c:2:3: Temp storage assigned to only: gname = pname