[parted-devel] libparted/tests/label.c: Plug a trivial leak.

Otavio Salvador otavio at debian.org
Thu Mar 8 14:00:09 CET 2007


Jim Meyering <jim at meyering.net> writes:

> This plugs a trivial leak in the test program:
>
> diff --git a/libparted/tests/label.c b/libparted/tests/label.c
> index ee6d0cd..32a8e9e 100644
> --- a/libparted/tests/label.c
> +++ b/libparted/tests/label.c
> @@ -40,6 +40,7 @@ START_TEST (test_create_label)
>  				disk = ped_disk_new_fresh(dev, type);
>  				fail_if(!disk, "Failed to create a label of type: %s",
>  						 type->name);
> +				ped_disk_destroy (disk);
>  		}
>  }
>  END_TEST

Ack.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list