diff options
Diffstat (limited to 'xkb/ddxList.c')
-rw-r--r-- | xkb/ddxList.c | 6 |
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; } |