While fixing the return of a NULL string when printing an empty dist (patch 3) (see background here [*]), I noticed there was a leak in qdist (patch 1). Patch 2 is trivial.
Thanks, Emilio [*] https://lists.gnu.org/archive/html/qemu-devel/2016-07/msg05494.html