[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plug another leak in sort

From: Paul Eggert
Subject: Re: plug another leak in sort
Date: Mon, 13 Nov 2006 10:07:32 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]