summary refs log tree commit diff stats
path: root/migration/multifd-nocomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'migration/multifd-nocomp.c')
-rw-r--r--migration/multifd-nocomp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration/multifd-nocomp.c b/migration/multifd-nocomp.c
index 1325dba97c..e46e79d8b2 100644
--- a/migration/multifd-nocomp.c
+++ b/migration/multifd-nocomp.c
@@ -42,8 +42,7 @@ void multifd_ram_save_setup(void)
 
 void multifd_ram_save_cleanup(void)
 {
-    g_free(multifd_ram_send);
-    multifd_ram_send = NULL;
+    g_clear_pointer(&multifd_ram_send, multifd_send_data_free);
 }
 
 static void multifd_set_file_bitmap(MultiFDSendParams *p)