Wireshark-bugs: [Wireshark-bugs] [Bug 7773] Explicitly assign pointers released by g_free() to N

Date: Sun, 30 Sep 2012 11:34:41 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7773

--- Comment #3 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2012-09-30 11:34:41 PDT ---
(In reply to comment #1)
> It might be issue if you reuse variable several times, or use it as global
> variable, but if you end variable scope with g_free, like:
> 
>      g_free(decoded_param);
> +    decoded_param = NULL;
>      return FALSE;
> 
> I don't see much sense to explicit set it to NULL, do you?

And in a case like this, I think it might end up generating some, "set but not
used" complaints.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.