HMG_Upper() function causes a memory leak

Moderator: Rathinagiri

KDJ
Posts: 223
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 262 times

Re: HMG_Upper() function causes a memory leak

Post by KDJ » Tue Jan 31, 2017 8:45 pm

Claudio

I found three more functions which do not release the buffer allocated on the heap memory (hb_xgrab):
HMG_GetUnicodeCharacter(),
HMG_UNICODE_TO_ANSI(),
HMG_ANSI_TO_UNICODE().

They also cause memory leaks. Could you check?

---
PS
And by the way, I noticed that in the file c_InitCom.c there are two functions that are not used:
WCHAR * hmg_MBtoWC ( CHAR * srcA ),
CHAR * hmg_WCtoMB ( WCHAR * srcW ).

User avatar
srvet_claudio
Posts: 2044
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 35 times
Been thanked: 146 times
Contact:

Post by srvet_claudio » Wed Feb 01, 2017 1:07 am

Thank for the info
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

Post Reply