X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/6c50dc9249a1abaee3d737a499833718be2e6e0a..b73d1009d4a3494951c129e49f50f8b4c795deb1:/src/uentryList.c diff --git a/src/uentryList.c b/src/uentryList.c index 975f2a0..eca84f0 100644 --- a/src/uentryList.c +++ b/src/uentryList.c @@ -327,7 +327,6 @@ uentryList uentryList_copy (uentryList s) void uentryList_free (uentryList s) { - if (!uentryList_isUndefined (s)) { int i; @@ -342,6 +341,18 @@ uentryList_free (uentryList s) } } +void +uentryList_freeShallow (uentryList s) +{ + if (!uentryList_isUndefined (s)) + { + /*@-mustfree@*/ /* free shallow does not free the element */ + sfree (s->elements); + /*@=mustfree@*/ + sfree (s); + } +} + bool uentryList_isVoid (uentryList cl) { @@ -873,7 +884,6 @@ uentryList_matchFields (uentryList p1, uentryList p2) cp1 = p1->elements[index]; cp2 = p2->elements[index]; - /*@i32*/ /* ** Should compare uentry's --- need to fix report errors too. */