summaryrefslogtreecommitdiff
path: root/src/xkbatom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xkbatom.c')
-rw-r--r--src/xkbatom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xkbatom.c b/src/xkbatom.c
index 564cc83..3e8b9c0 100644
--- a/src/xkbatom.c
+++ b/src/xkbatom.c
@@ -156,8 +156,7 @@ _XkbMakeAtom(const char *string, size_t len, Bool makeit)
tableLength * (2 *
sizeof(NodePtr)));
if (!table) {
- if (nd->string != string)
- _XkbFree(nd->string);
+ _XkbFree(nd->string);
_XkbFree(nd);
return BAD_RESOURCE;
}