From: Julian Seward Date: Fri, 28 May 2010 20:09:59 +0000 (+0000) Subject: libhb_so_recv(): don't pass a NULL filter to Filter__clear. Not sure X-Git-Tag: svn/VALGRIND_3_6_0~288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415232cfecec7e462656c6b96cf1b2ed379877e8;p=thirdparty%2Fvalgrind.git libhb_so_recv(): don't pass a NULL filter to Filter__clear. Not sure why thr->filter can be NULL here, though. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11136 --- diff --git a/helgrind/libhb_core.c b/helgrind/libhb_core.c index 004ce69fbf..ce3f889fb7 100644 --- a/helgrind/libhb_core.c +++ b/helgrind/libhb_core.c @@ -5711,7 +5711,8 @@ void libhb_so_recv ( Thr* thr, SO* so, Bool strong_recv ) //VtsID__rcinc(thr->viW); } - Filter__clear(thr->filter, "libhb_so_recv"); + if (thr->filter) + Filter__clear(thr->filter, "libhb_so_recv"); note_local_Kw_n_stack_for(thr); if (strong_recv)