The original[] array is malloc'd but not freed after use. The patch adds the missing free() call.
This leak was found with cppcheck.
Patch against current git.
Patch against current git.