]> andersk Git - splint.git/blame - test/freearray.c
Apparently splint does not correctly handle the case in which a #defined constant...
[splint.git] / test / freearray.c
CommitLineData
80ee600a 1typedef /*@only@*/ char *ocp;
2
3static /*@only@*/ ocp *stringTable;
4static int stringTableSize;
5
6void destroyMod (void)
7 /*@globals killed stringTable@*/
8{
9 int i;
10
11 for (i = 0; i < stringTableSize; i++)
12 {
13 free (stringTable[i]);
14 }
15
16 free (stringTable); /* okay */
17}
18
19void destroyMod2 (void)
20 /*@globals killed stringTable@*/
21{
22 free (stringTable); /* error */
23}
This page took 0.079487 seconds and 5 git commands to generate.