libsdl-org / SDL_net

A simple, cross-platform wrapper over TCP/IP sockets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PATCH] little MemLeak

SDLBugzilla opened this issue · comments

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.0
Reported for operating system, platform: Windows (All), x86_64

Comments on the original bug report:

On 2015-01-24 23:30:42 +0000, Jean-Baptiste Noblot wrote:

Created attachment 2004
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