Most setters using object_property_add_str() don't free the old values. Change
them to free old values before replacing them with new ones.

Eduardo Habkost (3):
  rng-random: NULL check not needed before g_free()
  rng-egd: Free old chr_name value before setting new one
  hw/machine: Free old values of string properties

 backends/rng-egd.c    | 1 +
 backends/rng-random.c | 5 +----
 hw/core/machine.c     | 8 ++++++++
 3 files changed, 10 insertions(+), 4 deletions(-)

-- 
1.9.0


Reply via email to