key: Fix resource leak from https://github.com/faux123/tuna/commit/8fc39830ce6dc2a93f29872afce83b180a6d3deb