mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #242 from LudwigOrtmann/issue_240
free reference pointer, fix indentation
This commit is contained in:
commit
823b48c315
@ -440,10 +440,11 @@ void native_interrupt_init(void)
|
|||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
DEBUG("XXX: native_interrupt_init()\n");
|
DEBUG("XXX: native_interrupt_init()\n");
|
||||||
|
|
||||||
process_heap_address = malloc(sizeof(int));
|
process_heap_address = malloc(sizeof(int));
|
||||||
if (process_heap_address == NULL) {
|
if (process_heap_address == NULL) {
|
||||||
err(EXIT_FAILURE, "native_interrupt_init: malloc");
|
err(EXIT_FAILURE, "native_interrupt_init: malloc");
|
||||||
}
|
}
|
||||||
|
free(process_heap_address);
|
||||||
|
|
||||||
VALGRIND_STACK_REGISTER(__isr_stack, __isr_stack + sizeof(__isr_stack));
|
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)));
|
VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", __isr_stack, (void*)((int)__isr_stack + sizeof(__isr_stack)));
|
||||||
|
Loading…
Reference in New Issue
Block a user