fix a possible memory leak in SDL_vasprintf()

This commit is contained in:
Ozkan Sezer 2023-11-05 20:01:02 +03:00
parent 59b37d0e5b
commit 1a83bf2399
1 changed files with 1 additions and 0 deletions

View File

@ -2201,6 +2201,7 @@ int SDL_vasprintf(char **strp, const char *fmt, va_list ap)
/* Check error code */
if (retval < 0) {
SDL_free(p);
return retval;
}