diff options
author | 2016-11-11 14:34:46 +0100 | |
---|---|---|
committer | 2016-11-11 16:12:01 +0100 | |
commit | 7c765ea14785a4ad6efd2e30e03447f354bed6b4 (patch) | |
tree | 8c1e3836d1c907378f61bb5748aac4219af68ce4 /src/tools/imgtool/charconv.cpp | |
parent | 5c0edceec3a939ce7804b23beaeebfc700413489 (diff) |
No need for osd_malloc, osd_malloc_array and osd_free (nw)
MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
Diffstat (limited to 'src/tools/imgtool/charconv.cpp')
-rw-r--r-- | src/tools/imgtool/charconv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/imgtool/charconv.cpp b/src/tools/imgtool/charconv.cpp index 34a912dcb89..a57d15e1a73 100644 --- a/src/tools/imgtool/charconv.cpp +++ b/src/tools/imgtool/charconv.cpp @@ -28,7 +28,7 @@ static char *utf8_from_latin1(const char *src) } /* allocate space for result, twice the source len to be safe */ - buffer = (char *) osd_malloc(strlen(src) * 2 + 1); + buffer = (char *) malloc(strlen(src) * 2 + 1); /* point to the start */ bufptr = buffer; @@ -73,7 +73,7 @@ static char *latin1_from_utf8(const char *src) } /* allocate space for result */ - buffer = (char *) osd_malloc(strlen(src) + 1); + buffer = (char *) malloc(strlen(src) + 1); /* point to the start */ bufptr = buffer; |