Bug 5439 - Potential memory leak in host name resolution
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 major
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-03-01 07:41 EST by Eugene C.
Modified: 2012-04-05 17:33:04 EDT
1 user (show)

See Also:


Attachments
Fix (340 bytes, patch)
2012-03-01 07:41 EST, Eugene C.

Description Eugene C. 2012-03-01 07:41:02 EST
Created attachment 3089 [details]
Fix

There is potential memory leak in host name resolution function introduced in r1813 - where 'search' item was freed instead of 'res' -- 'search' item may point on last item in linked list so first items may leave allocated
Btw, not sure about unix systems, but calling freeaddrinfo(search) under windows xp also causes app crash
Comment 1 Zack Middleton 2012-04-05 17:33:04 EDT
Applied in r2235, thanks.