Yeah, the rest of FPs were caused by inlining malloc calls which can be
resolved using:
-fno-inline -fno-omit-frame-pointer -fno-builtin -fno-optimize-sibling-calls
for clang, not sure for gcc.
Probably worth mentioning in docs.
Thanks.
On 11/20/18 8:16 AM, Petros Pissias wrote:
Thank you for the clarification Chris,
Cheers,
Ps, in this case Robert your fix applies as is, thanks.
Petros
On Tue, Nov 20, 2018 at 1:22 PM Chris Ridd <[email protected]
<mailto:[email protected]>> wrote:
> On 20 Nov 2018, at 09:11, Petros Pissias <[email protected]
<mailto:[email protected]>> wrote:
>
> Thanks for the feedback,
> I think that if your intention is to hide the "free (NULL)"
calls it should be perfectly fine, but in the general case maybe
this is something that needs to be locked at,
> to see why the application is doing this.
> It is currently interpreted as a "double free" as the program
thinks that the same address (0) is freed again without any
intermediate allocation done at this address.
free(NULL) is allowed by the standards and defined to do nothing,
so your leak checker definitely needs to ignore it. The
application doing free(NULL) is not broken.
Cheers,
Chris
-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
Modify Your Subscription: https://www.listbox.com/member/?member_id=25769126
Powered by Listbox: https://www.listbox.com