Lines Matching +defs:list +defs:string
1598 char * string = malloc(sizeof(char)*10);
1599 passConstPtr(string);
1729 char * string = malloc(sizeof(char)*10);
1730 string += 1;
1731 int length = strlen(string); // expected-warning {{Potential leak of memory pointed to by 'string'}}
1735 char * string = malloc(sizeof(char)*10);
1736 string += 1;
1737 int length = strlen(string);
1738 free(string); // expected-warning {{Argument to 'free()' is offset by 1 byte from the start of memory allocated by 'malloc()'}}
1742 char * string = malloc(sizeof(char)*10);
1743 string += 1;
1744 passConstPtr(string);
1745 free(string); // expected-warning {{Argument to 'free()' is offset by 1 byte from the start of memory allocated by 'malloc()'}}
1893 void list_add(struct ListInfo *list, struct ListInfo *item);
1895 void testCStyleListItems(struct ListInfo *list) {
1897 list_add(list, &x->li); // will free 'x'.