Skip to content

Commit

Permalink
Merge pull request #242 from LudwigOrtmann/issue_240
Browse files Browse the repository at this point in the history
free reference pointer, fix indentation
  • Loading branch information
mehlis committed Oct 13, 2013
2 parents ff7cf37 + 81f3ddd commit 823b48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpu/native/irq_cpu.c
Expand Up @@ -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)));
Expand Down

0 comments on commit 823b48c

Please sign in to comment.