iptostring memleaks

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
Guest

iptostring memleaks

Post by Guest »

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, 10:01
Contact:

Post by nym »

: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
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

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