vm/os-netbsd.cpp: fix double-free error

db4
Slava Pestov 2009-10-07 21:49:04 -05:00
parent fcc53d174c
commit 1f8495a62f
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const char *vm_executable_path()
static Dl_info info = {0};
if (!info.dli_fname)
dladdr((void *)main, &info);
return info.dli_fname;
return safe_strdup(info.dli_fname);
}
}