il_alloc: fix free memory function

I have undefined VECTORMEM, but configure found and defined MM_MALLOC, so free function caused segfault. Here is small fix for this issue.