[Rd] [PATCH] Fix bad free in connections
Steve Grubb
sgrubb at redhat.com
Fri Jul 21 19:40:44 CEST 2017
On Friday, July 21, 2017 5:03:09 AM EDT Martin Morgan wrote:
> b gets reallocated when
>
> res = vasprintf(&b, format, ap);
>
> is successful and res >= 0. usedVasprintf is then set to TRUE, and
> free(b) called.
>
> It seems like the code is correct as written?
Yes, I think I see the issue. vasprintf seems to not be tracked for memory
allocation. So, yes I agree its correct as written. Sorry for the noise.
-Steve
More information about the R-devel
mailing list