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 - SDL_GetError causing memory leaks
Summary: SDL_GetError causing memory leaks
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.10
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-02 12:54 UTC by blitron9000
Modified: 2020-03-17 08:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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