summaryrefslogtreecommitdiff
path: root/adk/tools/strmap.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-11-28 01:46:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-11-28 08:27:09 +0100
commit316ba77dcdadd9599d98d3b66cd8440fd4a1eaac (patch)
tree1557ff6d7730894d0cf8481748fd26bc762e7067 /adk/tools/strmap.h
parent6794a3dd815affd9a5e9610323164c464b93fad2 (diff)
adk/tools/pkgmaker: Fix memleak in toupperstr()
The function allocated a fresh buffer upon every call but callers didn't care to free the returned value. To solve this in a most simple way, make the function non-reentrant, returning a pointer to a local, statically allocated buffer which is being overwritten upon each consecutive call. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'adk/tools/strmap.h')
0 files changed, 0 insertions, 0 deletions