adjusted for changes in the free command

Signed-off-by: Alexander Skjolden <alex@plastboks.net>