[FFmpeg-devel] [PATCH] tcp.c/udp.c memleak?
Thu Aug 21 19:02:26 CEST 2008
On Wed, Aug 20, 2008 at 11:09:27PM -0400, Ronald S. Bultje wrote:
> Hi Michael,
> On Wed, Aug 20, 2008 at 10:42 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Wed, Aug 20, 2008 at 02:03:12PM -0400, Ronald S. Bultje wrote:
> >> Hi,
> >> tcpmemleak.patch: I think the malloc should go after the init &
> >> paramchecks otherwise the return in ff_network_init() could be a
> >> memleak. In tcp.c, I move the malloc down,
> > i think it should be moved over all goto fail* which would allow
> > the fail case to be simplified
> Hm, ok, like $attached?
> I also attached a second which removes all useless comments in this
> function. These comments are like "// url_split where the line that
> the comments refers to in fact, yes really, you wouldn't believe it,
> calls url_split. Also many other clueful comments in that func, I
> killed them all. I also butchered a line which removes the
> authentication from the returned hostname, because that same line is
> already in url_split (even if auth is NULL) and rearranges some other
> lines to make the function even smaller. (Maybe you want a new thread
> for this or have it split for all the re-arrange thingies and
yes, please split it ...
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel