diff options
Diffstat (limited to 'xorg-server/xkb/ddxList.c')
-rw-r--r-- | xorg-server/xkb/ddxList.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xorg-server/xkb/ddxList.c b/xorg-server/xkb/ddxList.c index b148c714f..e4e32075b 100644 --- a/xorg-server/xkb/ddxList.c +++ b/xorg-server/xkb/ddxList.c @@ -208,10 +208,7 @@ char tmpname[PATH_MAX]; return BadImplementation;
}
list->nFound[what]= 0;
- if (buf) {
- free(buf);
- buf = NULL;
- }
+ free(buf);
buf = malloc(PATH_MAX * sizeof(char));
if (!buf)
{
|