summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPauli Nieminen <ext-pauli.nieminen@nokia.com>2010-07-22 11:34:54 +0300
committerPeter Hutterer <peter.hutterer@who-t.net>2010-09-01 14:42:56 +1000
commit184ef0d35612d6ed0619283d376f04d9a904f47c (patch)
tree08788c846d2e0f477bafb243b12b3ac2d0f024c7 /xkb
parent1223340644744c0b38aa85f5956eb5ab7c696517 (diff)
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>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/ddxList.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xkb/ddxList.c b/xkb/ddxList.c
index 39bd7397a..c1ada5c6d 100644
--- a/xkb/ddxList.c
+++ b/xkb/ddxList.c
@@ -202,8 +202,7 @@ char tmpname[PATH_MAX];
}
if (!in)
{
- if (buf != NULL)
- free(buf);
+ free(buf);
#ifdef WIN32
unlink(tmpname);
#endif
@@ -266,8 +265,7 @@ char tmpname[PATH_MAX];
fclose(in);
unlink(tmpname);
#endif
- if (buf != NULL)
- free(buf);
+ free(buf);
return status;
}