mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	res_pjproject.c: Fix ast_strdup() alloc failure.
Change-Id: I74688038e7afe3a279359cce53aadb28ade51ead
This commit is contained in:
		@@ -234,7 +234,7 @@ static void capture_buildopts_cb(int level, const char *data, int len)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	dup = ast_strdup(ast_skip_blanks(data));
 | 
			
		||||
	if (AST_VECTOR_ADD_SORTED(&buildopts, dup, strcmp)) {
 | 
			
		||||
	if (dup && AST_VECTOR_ADD_SORTED(&buildopts, dup, strcmp)) {
 | 
			
		||||
		ast_free(dup);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user