From: Andre Noll Date: Thu, 17 Jan 2008 20:40:38 +0000 (+0100) Subject: net.c: Fix a memory leak in makesock(). X-Git-Tag: v0.3.1~89 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=3c6cd36c4ecfb4a6fb3fba6f04ee761c534fceac;hp=3c6cd36c4ecfb4a6fb3fba6f04ee761c534fceac net.c: Fix a memory leak in makesock(). "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. ---