Added sal_free. Still kind of buggy