summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sdlos_unix.c
diff options
context:
space:
mode:
author Scott Stone <tafoid@users.noreply.github.com>2010-04-23 17:10:03 +0000
committer Scott Stone <tafoid@users.noreply.github.com>2010-04-23 17:10:03 +0000
commitca0f74f3344acdc0aec6d378acaf02b5ca80c7a0 (patch)
tree8a03e04dbfa9d3bbd7102bdd47082095e37103b1 /src/osd/sdl/sdlos_unix.c
parent2d638c26912b9dec089c9abb99b7c06b374c96c4 (diff)
Fix the memory leaks with the strconv.c function by
using osd_malloc() instead. Fixed other memory leaks as well. [Oliver Stoneberg]
Diffstat (limited to 'src/osd/sdl/sdlos_unix.c')
-rw-r--r--src/osd/sdl/sdlos_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/sdl/sdlos_unix.c b/src/osd/sdl/sdlos_unix.c
index b24bce929ae..6e79fb365bf 100644
--- a/src/osd/sdl/sdlos_unix.c
+++ b/src/osd/sdl/sdlos_unix.c
@@ -293,7 +293,7 @@ file_error osd_get_full_path(char **dst, const char *path)
}
else
{
- *dst = (char *)malloc(strlen(path_buffer)+strlen(path)+3);
+ *dst = (char *)osd_malloc(strlen(path_buffer)+strlen(path)+3);
// if it's already a full path, just pass it through
if (path[0] == '/')