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 4749

Summary: SDL_GetError causing memory leaks
Product: SDL Reporter: blitron9000
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.10   
Hardware: x86_64   
OS: Linux   
See Also: https://bugzilla.libsdl.org/show_bug.cgi?id=5041

Description blitron9000 2019-08-02 12:54:35 UTC
When using SDL_GetError() my memory leak checker returned this  
New fresh storage (type char *) passed as implicitly temp (not
                    released): SDL_GetError()
  A memory leak has been detected. Storage allocated locally is not released
  before the last reference to it is lost. (Use -mustfreefresh to inhibit
  warning)

Im assuming this memory leak caused my programs to randomly segfault when using SDL_GetError() as the program had no issues running once it was was deleted.

this happened with SDL_Log and printf.

my operating system is: anarchy linux x86_64 Linux 5.2.5-arch1-1-ARCH using X11 and XFCE4 DE