]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
libhb_so_recv(): don't pass a NULL filter to Filter__clear. Not sure
authorJulian Seward <jseward@acm.org>
Fri, 28 May 2010 20:09:59 +0000 (20:09 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 28 May 2010 20:09:59 +0000 (20:09 +0000)
why thr->filter can be NULL here, though.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11136

helgrind/libhb_core.c

index 004ce69fbfff0561afcfe46c91807ac894dc830d..ce3f889fb7496e12e65565a0200251e79689165e 100644 (file)
@@ -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)