home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
splint3s.zip
/
splint-3.0.1.6
/
test
/
fields3.c
< prev
next >
Wrap
Text File
|
2000-06-12
|
382b
|
41 lines
typedef struct
{
int *x;
int *y;
} *pair;
void pair_free (/*@only@*/ pair p)
{
int i = 3;
free (p->x);
if (i < 2)
{
*(p->y) = 3;
i++;
}
free (p->y);
free (p);
}
void pair_free2 (/*@only@*/ pair p)
{
int i = 3;
free (p->x);
if (i < 2)
{
*(p->y) = 3;
}
else
{
*(p->y) = 12;
}
free (p->y);
free (p);
}