]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
net.c: Fix a memory leak in makesock().
authorAndre Noll <maan@systemlinux.org>
Thu, 17 Jan 2008 20:40:38 +0000 (21:40 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 17 Jan 2008 20:40:38 +0000 (21:40 +0100)
"port" was allocated dynamically but never freed. Fix it by
using a static buffer instead. This buffer can not overflow as
"port_number" is an unsigned short, so its decimal representation
consists of at most 5 digits.


No differences found