From 81f3ddde4427b356516eb163932a5bdc8e9dbf31 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Sun, 13 Oct 2013 20:45:35 +0200 Subject: [PATCH] free reference pointer, fix indentation --- cpu/native/irq_cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/native/irq_cpu.c b/cpu/native/irq_cpu.c index 4e73dd432e6d..689a71f505ff 100644 --- a/cpu/native/irq_cpu.c +++ b/cpu/native/irq_cpu.c @@ -440,10 +440,11 @@ void native_interrupt_init(void) struct sigaction sa; DEBUG("XXX: native_interrupt_init()\n"); - process_heap_address = malloc(sizeof(int)); + process_heap_address = malloc(sizeof(int)); if (process_heap_address == NULL) { err(EXIT_FAILURE, "native_interrupt_init: malloc"); } + free(process_heap_address); VALGRIND_STACK_REGISTER(__isr_stack, __isr_stack + sizeof(__isr_stack)); VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", __isr_stack, (void*)((int)__isr_stack + sizeof(__isr_stack)));