1 /* Reduced from haproxy-2.7.1's cfgparse.c. */
3 typedef __SIZE_TYPE__
size_t;
6 calloc(size_t __nmemb
, size_t __size
)
7 __attribute__((__nothrow__
, __leaf__
))
8 __attribute__((__malloc__
)) __attribute__((__alloc_size__(1, 2)));
22 extern struct list postparsers
;
27 struct cfg_postparser
* cp
;
29 cp
= (struct cfg_postparser
*) calloc(1, sizeof(*cp
));
36 (&cp
->list
)->p
= (&postparsers
)->p
;
37 (&postparsers
)->p
= (&cp
->list
);
38 (&cp
->list
)->p
->n
= (&postparsers
)->p
;
39 (&cp
->list
)->n
= (&postparsers
);
41 return 1; /* { dg-bogus "leak of 'cp'" } */