We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2856

Summary: [PATCH] little MemLeak
Product: SDL_net Reporter: Jean-Baptiste Noblot <jb.noblot>
Component: miscAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86_64   
OS: Windows (All)   
Attachments: Patch for memleak

Description Jean-Baptiste Noblot 2015-01-24 23:30:42 UTC
Created attachment 2004 [details]
Patch for memleak

We reassign directly the same var with realloc but if realloc fail we loose the pointer

SDLnet.c line 239

so the patch make a tmpVar and assign after