linux: close "/proc/self/maps" after finding the stack base

This commit is contained in:
Matthew Flatt 2014-04-28 17:49:01 -06:00
parent acf250891f
commit afb75c7cfe

View File

@ -518,7 +518,8 @@ static uintptr_t adjust_stack_base(uintptr_t bnd) {
break;
}
/* printf("%p vs. %p: %d\n", (void*)bnd, (void*)p, p - bnd); */
return p;
bnd = p;
break;
}
}
free(buf);