Fix leak of preferences strings

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2 jobs for master in 2 minutes and 28 seconds
Status Job ID Name Coverage
  Test
passed #141918547
jobfedora29

00:02:28

passed #141918548
jobubuntu1804

00:01:36