[PATCH 03/15] xkb: Don't check for NULL before calling free
Pauli Nieminen
ext-pauli.nieminen at nokia.com
Tue Jul 27 05:09:44 PDT 2010
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
xkb/ddxList.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/xkb/ddxList.c b/xkb/ddxList.c
index 39bd739..c1ada5c 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;
}
--
1.6.3.3
More information about the xorg-devel
mailing list