mirror of
				https://bitbucket.org/ohhara/ohmulticastvideoscanner.git
				synced 2025-10-29 09:27:29 +00:00 
			
		
		
		
	Fix error var leak.
This commit is contained in:
		
							parent
							
								
									314472ff38
								
							
						
					
					
						commit
						9c0494a903
					
				| @ -175,6 +175,7 @@ int main(int argc, char *argv[]) { | |||||||
|   g_option_context_add_group(context, gst_init_get_option_group()); |   g_option_context_add_group(context, gst_init_get_option_group()); | ||||||
|   if (!g_option_context_parse(context, &argc, &argv, &error)) { |   if (!g_option_context_parse(context, &argc, &argv, &error)) { | ||||||
|     g_print("option parsing failed: %s\n", error->message); |     g_print("option parsing failed: %s\n", error->message); | ||||||
|  |     g_error_free(error); | ||||||
|     ret = -1; |     ret = -1; | ||||||
|     goto finish_return; |     goto finish_return; | ||||||
|   } |   } | ||||||
| @ -196,6 +197,7 @@ int main(int argc, char *argv[]) { | |||||||
|     mask = g_inet_address_mask_new_from_string(argv[i], &error); |     mask = g_inet_address_mask_new_from_string(argv[i], &error); | ||||||
|     if (!mask) { |     if (!mask) { | ||||||
|       g_print("%s parsing failed: %s\n", argv[i], error->message); |       g_print("%s parsing failed: %s\n", argv[i], error->message); | ||||||
|  |       g_error_free(error); | ||||||
|       ret = -3; |       ret = -3; | ||||||
|       goto finish_return; |       goto finish_return; | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user