summaryrefslogtreecommitdiff
path: root/avr/xmalloc.c
diff options
context:
space:
mode:
authorLeo C2018-07-21 13:38:25 +0200
committerLeo C2018-07-21 13:45:29 +0200
commit2dec14cd1dbf09755b0839859da1a942944a8376 (patch)
treedcb1ef691980c83549932f40c4e0b61aae07e2b1 /avr/xmalloc.c
parent9d6c43faec80158445b1131640356cc0c90b45e3 (diff)
downloadz180-stamp-2dec14cd1dbf09755b0839859da1a942944a8376.zip
Remove xmalloc.c, fix potential 0-pointer derefenrence in cli.c.
# Conflicts: # avr/cli.c
Diffstat (limited to 'avr/xmalloc.c')
-rw-r--r--avr/xmalloc.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/avr/xmalloc.c b/avr/xmalloc.c
deleted file mode 100644
index d42d5c9..0000000
--- a/avr/xmalloc.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
- *
- * SPDX-License-Identifier: GPL-2.0+
- */
-
-#include <stdlib.h>
-#include "debug.h"
-#include "xmalloc.h"
-
-void* xmalloc(size_t size)
-{
- void *p;
-
- p = malloc(size);
-
- if (p == NULL)
- debug("*** Out of memory!\n");
-
- return p;
-}
-
-
-void* xrealloc(void *p, size_t size)
-{
- p = realloc(p, size);
-
- if (p == NULL)
- debug("*** Out of memory!\n");
-
- return p;
-}