When moving a key, free the old key element after unlinking.
When moving a key, free the old key element after unlinking.

We can safely do this, because we have duplicated the old key before
copying/moving.

Found by Valgrind.

levaidaniel/kc,levaidaniel/kc,levaidaniel/kc