2014-07-23 2:10 GMT+02:00 Sam Roberts <[email protected]>:
> And I just grepped for malloc, about 5 uses in, I find src/unix/aix.c line 
> 308:
>
> ```
>   ifc.ifc_req = (struct ifreq*)malloc(size);
>   ifc.ifc_len = size;
>   if (ioctl(sockfd, SIOCGIFCONF, &ifc) == -1) {
>     uv__close(sockfd);
>     return -ENOSYS;
>   }
> ```
>
> I suspect that ioctl() rarely if ever fails, but if it does, this will leak.


Good catch.


-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to