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 » Wed Dec 22, 2004 5:10 pm

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: Wed Aug 18, 2004 11:01 am
Contact:

Post by nym » Thu Dec 23, 2004 2:08 am

: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: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Thu Dec 23, 2004 9:04 am

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