Ukol c.2: bugfix, missing kfree & swapped args

Signed-off-by: Vojtech Havel <xhavel1@fi.muni.cz>