Core/SAI: Fix two memoryleaks in my previous commits. Thanks to @Xter for the notice.