fixed memory leaks and set exec to verify pointers
updated API for mnttab