aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-10-29 23:39:03 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-11-09 15:31:57 +0100
commitb01e29efffafe9f426eb88ba400e2fa24de548aa (patch)
tree8f03d24c2d8fca356f258811fc94f01c047d14f1 /nx-X11/programs
parent90b83a79e6aed4e54ac29d022adf16be6869f054 (diff)
downloadnx-libs-b01e29efffafe9f426eb88ba400e2fa24de548aa.tar.gz
nx-libs-b01e29efffafe9f426eb88ba400e2fa24de548aa.tar.bz2
nx-libs-b01e29efffafe9f426eb88ba400e2fa24de548aa.zip
xkb: Don't check for NULL before calling free
Author: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Date: Thu Jul 22 11:34:54 2010 +0300 xkb: Don't check for NULL before calling free Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/xkb/ddxList.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/xkb/ddxList.c b/nx-X11/programs/Xserver/xkb/ddxList.c
index e751b6b24..5466cff37 100644
--- a/nx-X11/programs/Xserver/xkb/ddxList.c
+++ b/nx-X11/programs/Xserver/xkb/ddxList.c
@@ -209,8 +209,7 @@ char tmpname[PATH_MAX];
}
if (!in)
{
- if (buf != NULL)
- free (buf);
+ free (buf);
#ifdef WIN32
unlink(tmpname);
#endif
@@ -276,8 +275,7 @@ char tmpname[PATH_MAX];
fclose(in);
unlink(tmpname);
#endif
- if (buf != NULL)
- free (buf);
+ free (buf);
return status;
}