Lines Matching defs:string
1031 char * string = malloc(sizeof(char)*10);
1032 passConstPtr(string);
1176 char * string = malloc(sizeof(char)*10);
1177 string += 1;
1178 int length = strlen(string); // expected-warning {{Memory is never released; potential leak of memory pointed to by 'string'}}
1182 char * string = malloc(sizeof(char)*10);
1183 string += 1;
1184 int length = strlen(string);
1185 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1189 char * string = malloc(sizeof(char)*10);
1190 string += 1;
1191 passConstPtr(string);
1192 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}