mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: fix bad frees in get_list0 and get_list20
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									5275d170e0
								
							
						
					
					
						commit
						0f4821ec17
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -666,7 +666,7 @@ static int get_list0(struct list_head *list,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return cnt;
 | 
						return cnt;
 | 
				
			||||||
      __fail:
 | 
					      __fail:
 | 
				
			||||||
        snd_use_case_free_list((const char **)res, cnt);
 | 
					        snd_use_case_free_list(*result, cnt);
 | 
				
			||||||
        return -ENOMEM;
 | 
					        return -ENOMEM;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -724,7 +724,7 @@ static int get_list20(struct list_head *list,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return cnt;
 | 
						return cnt;
 | 
				
			||||||
      __fail:
 | 
					      __fail:
 | 
				
			||||||
        snd_use_case_free_list((const char **)res, cnt);
 | 
					        snd_use_case_free_list(*result, cnt);
 | 
				
			||||||
        return -ENOMEM;
 | 
					        return -ENOMEM;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue