Here's a proposed fix, not sure if this is the exact cause of the double-free or if duplicate keys are acceptable or not.
Here's a proposed fix, not sure if this is the exact cause of the double-free or if duplicate keys are acceptable or not.