For the line:
msInsertHashTable(hash, key, msCaseReplaceSubstring(msStrdup(val), from, to));
The result of msCaseReplaceSubstring is never freed. HashTable stores a copy of it.
Can you create a pull request/patch for this please ?
Something along the lines of this:
Perfect! If you want your name in the commit logs create a pr with that, if not i'll apply myself. Thanks.
Just apply it!
fix memory leak on hashTableSubstituteString (#5325)
fix const on #5325
applied to branch-7-0, thanks @gogglesguy