mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	json-test: Fix Coverity warning
Cosmetic resource leak in test code Coverity ID: #1454314 Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
		
							parent
							
								
									ff49f0a5c1
								
							
						
					
					
						commit
						bba8c350a5
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -248,7 +248,11 @@ START_TEST(bad_test) {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (i = 0; i < PA_ELEMENTSOF(bad_parse); i++) {
 | 
					    for (i = 0; i < PA_ELEMENTSOF(bad_parse); i++) {
 | 
				
			||||||
        fail_unless(pa_json_parse(bad_parse[i]) == NULL);
 | 
					        pa_json_object *obj;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        fail_unless((obj = pa_json_parse(bad_parse[i])) == NULL);
 | 
				
			||||||
 | 
					        if (obj)
 | 
				
			||||||
 | 
					            pa_json_object_free(obj);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
END_TEST
 | 
					END_TEST
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue