pr-manager-helper: fix memory leak on event
Reported by Coverity. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
		
							parent
							
								
									81e34930ce
								
							
						
					
					
						commit
						ea3d77c889
					
				@ -46,6 +46,7 @@ static void pr_manager_send_status_changed_event(PRManagerHelper *pr_mgr)
 | 
				
			|||||||
    if (id) {
 | 
					    if (id) {
 | 
				
			||||||
        qapi_event_send_pr_manager_status_changed(id, !!pr_mgr->ioc,
 | 
					        qapi_event_send_pr_manager_status_changed(id, !!pr_mgr->ioc,
 | 
				
			||||||
                                                  &error_abort);
 | 
					                                                  &error_abort);
 | 
				
			||||||
 | 
					        g_free(id);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user