free old (unused) map before replacing with clone
free old (unused) map before replacing with clone

fixing
2: ==11820== 2 bytes in 1 blocks are definitely lost in loss record 1 of 301
2: ==11820==    at 0x4C2A9C7: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==11820==    by 0x52C5CBA: solv_calloc (in /usr/lib64/libsolv.so.0)
2: ==11820==    by 0x5284D0F: map_init (in /usr/lib64/libsolv.so.0)
2: ==11820==    by 0x4E4C07B: hif_packageset_new (hy-packageset.c:100)
2: ==11820==    by 0x4E4C0FD: hif_packageset_from_bitmap (hy-packageset.c:201)
2: ==11820==    by 0x11D494: test_query_run_set_sanity (test_query.c:62)
2: ==11820==    by 0x507578A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==11820==    by 0x5075B7C: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==11820==    by 0x10E167: main (test_main.c:87)

rpm-software-management/libdnf,Conan-Kudo/libhif,rpm-software-management/libdnf,rpm-software-management/libdnf,Conan-Kudo/libhif,Conan-Kudo/libhif,rpm-software-management/libhif,Conan-Kudo/libhif,rpm-software-management/libhif,edynox/libdnf,hughsie/libhif,edynox/libdnf,rpm-software-management/libdnf,edynox/libdnf,rpm-software-management/libhif,hughsie/libhif,edynox/libdnf,hughsie/libhif,rpm-software-management/libhif,hughsie/libhif