segfault in free resolve