jim: Fix ref count problem with interpolated dict subst
commitbc1afe36eb28a54f62503d18e2228a81330ca4ac
authorSteve Bennett <steveb@workware.net.au>
Fri, 12 May 2017 02:41:21 +0000 (12 12:41 +1000)
committerSteve Bennett <steveb@workware.net.au>
Fri, 12 May 2017 03:01:45 +0000 (12 13:01 +1000)
tree17817d9806654ee53be3060afea552600850717f
parent1d6b931d0c873bbad193677734dc9d352628577b
jim: Fix ref count problem with interpolated dict subst

When duplicating interpolated object type, need to increment
ref count of the key to offset the decrement during free.

Also remove type-specific dup for dict-substitution which is not
needed since it does nothing different from the default dup.

Reported-by: Ryan Whitworth <me@ryanwhitworth.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c
regtest.tcl