[FFmpeg-devel] [PATCH] tcp.c/udp.c memleak?

Ronald S. Bultje rsbultje
Sat Aug 23 19:50:35 CEST 2008


Hi,

patch#2 removes the fail: case from all cases where it failes before
socket(), since these do nothing but return. This gives more control
over the specific return value, e.g. I can change it into EINVAL
instead of EIO for these cases where it fails because of invalid
parameters instead of I/O errors.

The patch also removes the if (fd ...) check because it is no longer
needed, fail: is only reached when the socket has been created.

Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tcpdirectreturn.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080823/37a8b884/attachment.txt>



More information about the ffmpeg-devel mailing list