utils: Don't free memory owned by glib in test

https://bugzilla.gnome.org/show_bug.cgi?id=711775