grub-core/fs/zfs/zfsinfo.c: memory leak in print_vdev_info
CID: 73635
This commit is contained in:
		
							parent
							
								
									dbbac5a04c
								
							
						
					
					
						commit
						03d79a878b
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -130,10 +130,12 @@ print_vdev_info (char *nvlist, int tab) | |||
|       grub_free (bootpath); | ||||
|       grub_free (devid); | ||||
|       grub_free (path); | ||||
|       grub_free (type); | ||||
|       return GRUB_ERR_NONE; | ||||
|     } | ||||
|   char is_mirror=(grub_strcmp(type,VDEV_TYPE_MIRROR) == 0); | ||||
|   char is_raidz=(grub_strcmp(type,VDEV_TYPE_RAIDZ) == 0); | ||||
|   grub_free (type); | ||||
| 
 | ||||
|   if (is_mirror || is_raidz) | ||||
|     { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue