summaryrefslogtreecommitdiff
path: root/console-tools/loadkmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools/loadkmap.c')
-rw-r--r--console-tools/loadkmap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c
index 488585f..2321a1e 100644
--- a/console-tools/loadkmap.c
+++ b/console-tools/loadkmap.c
@@ -67,11 +67,7 @@ int loadkmap_main(int argc, char **argv)
exit(FALSE);
}
- ibuff = (u_short *) malloc(ibuffsz);
- if (!ibuff) {
- errorMsg("Out of memory.\n");
- exit(FALSE);
- }
+ ibuff = (u_short *) xmalloc(ibuffsz);
for (i = 0; i < MAX_NR_KEYMAPS; i++) {
if (flags[i] == 1) {