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

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

--- Comment #5 from Bill Parker <wp02855@xxxxxxxxx> 2012-09-30 11:50:57 PDT ---
(In reply to comment #4)
> (In reply to comment #2)
> > Well, in some areas of the code, file u3.c for example, this is done
> > explicitly, but in the files I submitted it isn't (might be splitting hairs
> > here), but shouldn't it be consistent throughout the code?
> 
> Ok, few greps:
> $ grep -Ir '\<g_free\>' ./ | wc -l
> 3083
> $ grep -Ir '\<g_string_free\>' ./ | wc -l
> 347
> $ grep -Ir '\<fclose\>' ./ | wc -l
> 196
> 
> You *really* want to fix all of these?
> (and it's only part of functions, which free resources)...

Well, that's a LOT of g_free() there...:)  I can fix things on a on-going
basis, but if it's not an issue, then I'll go ahead and close out the ticket. 
You're right about the function exiting, which does free resources in use.

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