Commit d5c9dc88 authored by Michael Gerbracht's avatar Michael Gerbracht Committed by ROOL

Fixed memory leaks if registration of filters failed upon object creation

parent bd52cdb7
......@@ -160,7 +160,7 @@ extern _kernel_oserror *create_object (_kernel_swi_regs *r, TaskDescriptor *t)
regs.r[4] = (int) events_of_interest;
if ((e = _kernel_swi (Toolbox_RegisterPostFilter, &regs, &regs)) != NULL)
return e;
goto clearup1;
regs.r[0] = 0;
regs.r[1] = Scale_PostFilter;
......@@ -168,7 +168,7 @@ extern _kernel_oserror *create_object (_kernel_swi_regs *r, TaskDescriptor *t)
regs.r[4] = (int) toolbox_events_of_interest;
if ((e = _kernel_swi (Toolbox_RegisterPostFilter, &regs, &regs)) != NULL)
return e;
goto clearup1;
regs.r[0] = 0;
regs.r[1] = Scale_PreFilter;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment