configuration: fix memleak when reloading

2 jobs for fix-valgrind-leaks in 1 minute and 36 seconds (queued for 1 second)
Status Job ID Name Coverage
  Container
passed #2739079
container_fedora

00:00:26

 
  Build
passed #2739080
build_on_fedora

00:01:10