iptostring memleaks

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
Guest

iptostring memleaks

Post by Guest » 22 Dec 2004, 17:10

just had a glance at the .7e code and just thought I would report that basicly on everysingle use of iptostring() you're leaking memory...
User avatar
nym
Novice
Novice
Posts: 116
Joined: 18 Aug 2004, 11:01
Contact:

Post by nym » 23 Dec 2004, 02:08

:shock:
ElvenProgrammer: you may want to replace iptostring by inet_ntoa, as it is standard and contains no memory leaks (the ASCII ip addr is in static char* in inet_ntoa). Or you could fix up iptostring :)

ty Guest :)
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 23 Dec 2004, 09:04

Oh yes sure inet_ntoa() I'll do it
:oops:
Eheh I know the net engine is far from perfect, It was my second try with network functions. Anyway I have in mind some other optimizations.
Post Reply