Fixed a bug thanks to @tcoenraad.
- Forgot to clear slot after it has been freed.