]> err.no Git - varnish/commitdiff
Explain to FlexeLint that vsb_new()/vsb_delete() are alloc/free functions.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 31 Mar 2008 11:43:48 +0000 (11:43 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 31 Mar 2008 11:43:48 +0000 (11:43 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2612 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/flint.lnt

index 3157bf22410d620898bf00ac099511e52e7c5fdb..b52dd7c8f2fdc508f50ca64f11a047ea7335480d 100644 (file)
@@ -14,6 +14,8 @@
 // Fix strchr() semtics, it can only return NULL if arg2 != 0
 -sem(strchr, 1p, type(1), 2n == 0 ? (@p < 1p) : (@p < 1p || @p == 0 ))
 
+-sem(vsb_new, @p == malloc(1))
+-sem(vsb_delete, custodial(1))
 -sem(lbv_assert, r_no)
 -sem(lbv_xxxassert, r_no)
 -sem(WS_Init, custodial(2))