2009/2/19 Bert Wesarg <bert.wesarg_at_[hidden]>:
> From: Bert Wesarg <Bert.Wesarg_at_[hidden]>
>
> Free the memory alocated by the call to asprintf.
>
> Regards,
> Bert Wesarg
>
> ---
>
> Â orte/tools/orte-ps/orte-ps.c | Â Â 1 +
> Â 1 file changed, 1 insertion(+)
>
> diff --quilt old/orte/tools/orte-ps/orte-ps.c new/orte/tools/orte-ps/orte-ps.c
> --- old/orte/tools/orte-ps/orte-ps.c
> +++ new/orte/tools/orte-ps/orte-ps.c
> @@ -396,6 +396,7 @@ static int pretty_print(orte_ps_mpirun_i
> Â Â len_hdr = strlen(header);
>
> Â Â printf("%s\n", header);
> + Â Â free(header);
> Â Â for (i=0; i < len_hdr; i++) {
> Â Â Â Â printf("%c", '-');
> Â Â }
>
Ping.
|