mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	Correct memory leaks of error in completion case.
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:
		
				
					committed by
					
						
						Philip Withnall
					
				
			
			
				
	
			
			
			
						parent
						
							43c2d747a3
						
					
				
				
					commit
					1c7c849d34
				
			@@ -681,8 +681,8 @@ handle_emit (gint        *argc,
 | 
			
		||||
      else
 | 
			
		||||
        {
 | 
			
		||||
          g_printerr (_("Error connecting: %s\n"), error->message);
 | 
			
		||||
          g_error_free (error);
 | 
			
		||||
        }
 | 
			
		||||
      g_error_free (error);
 | 
			
		||||
      goto out;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -995,8 +995,8 @@ handle_call (gint        *argc,
 | 
			
		||||
      else
 | 
			
		||||
        {
 | 
			
		||||
          g_printerr (_("Error connecting: %s\n"), error->message);
 | 
			
		||||
          g_error_free (error);
 | 
			
		||||
        }
 | 
			
		||||
      g_error_free (error);
 | 
			
		||||
      goto out;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -1825,8 +1825,8 @@ handle_introspect (gint        *argc,
 | 
			
		||||
      else
 | 
			
		||||
        {
 | 
			
		||||
          g_printerr (_("Error connecting: %s\n"), error->message);
 | 
			
		||||
          g_error_free (error);
 | 
			
		||||
        }
 | 
			
		||||
      g_error_free (error);
 | 
			
		||||
      goto out;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -2057,8 +2057,8 @@ handle_monitor (gint        *argc,
 | 
			
		||||
      else
 | 
			
		||||
        {
 | 
			
		||||
          g_printerr (_("Error connecting: %s\n"), error->message);
 | 
			
		||||
          g_error_free (error);
 | 
			
		||||
        }
 | 
			
		||||
      g_error_free (error);
 | 
			
		||||
      goto out;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -2277,8 +2277,8 @@ handle_wait (gint        *argc,
 | 
			
		||||
      else
 | 
			
		||||
        {
 | 
			
		||||
          g_printerr (_("Error connecting: %s\n"), error->message);
 | 
			
		||||
          g_error_free (error);
 | 
			
		||||
        }
 | 
			
		||||
      g_error_free (error);
 | 
			
		||||
      goto out;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user