[PATCH 3/5] libXi: Use single error path in XQueryDeviceState
Julien Cristau
jcristau at debian.org
Thu Jun 17 08:58:08 PDT 2010
On Mon, Jun 14, 2010 at 11:47:33 +0300, Pauli Nieminen wrote:
> This reduces code duplication and fixes possible leak of data. data would
> leak if allocation of state fails.
>
> Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
> ---
> src/XQueryDv.c | 24 +++++++++---------------
> 1 files changed, 9 insertions(+), 15 deletions(-)
>
Reviewed-by: Julien Cristau <jcristau at debian.org>
Cheers,
Julien
More information about the xorg-devel
mailing list