lib: Fix memory leak when debugging enabled (found by valgrind).
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 24 Nov 2011 15:50:54 +0000 (15:50 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 24 Nov 2011 21:07:29 +0000 (21:07 +0000)
commitec8bd1a09946db92bafad3f87669270421b80787
tree550b5a0a3d931ab9c7424fffc920d2a9e89ad7a7
parentfe90a14ef91cf9765598cf7ad188bd6883879a30
lib: Fix memory leak when debugging enabled (found by valgrind).

If you enabled debugging (eg. LIBGUESTFS_DEBUG=1) then every
debug message printed would be leaked.
(cherry picked from commit dd76ce2b4c93dd10d8eca9ab7c77bc831f103d03)
src/guestfs.c