]> andersk Git - splint.git/blame - test/compdestroy.c
noexpand always false.
[splint.git] / test / compdestroy.c
CommitLineData
885824d3 1typedef /*@only@*/ int *oip;
2
3typedef /*@abstract@*/ struct
4{
5 oip *ips;
6 int size;
7} *sip;
8
9void sip_free (/*@only@*/ sip x)
10{
11 int i;
12
13 for (i = 0; i < x->size; i++)
14 {
15 free (x->ips[i]);
16 free (x->ips[i]);
17 }
18
19 free (x->ips);
20 free (x);
21}
22
23void sip_free2 (/*@only@*/ sip x)
24{
25 free (x->ips); /* 1. Only storage *(x->ips) (type oip) derived from released */
26 free (x);
27}
28
This page took 1.280837 seconds and 5 git commands to generate.