[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plug another leak in sort
From: |
Jim Meyering |
Subject: |
Re: plug another leak in sort |
Date: |
Mon, 13 Nov 2006 19:16:21 +0100 |
Paul Eggert <address@hidden> wrote:
> Jim Meyering <address@hidden> writes:
>
>> + struct keyfield *key = xmalloc (sizeof *key);
>>
>> + *key = *key_arg;
>
> No big deal, but those two lines can be replaced with:
>
> struct keyfield *key = xmemdup (key_arg, sizeof *key);
That's better. Fixed.
Thanks!