}
reduce(parent);
- wchar_t *lib_python = joinpath2(path, calculate->lib_python);
+ wchar_t *lib_python = joinpath2(parent, calculate->lib_python);
PyMem_RawFree(parent);
if (lib_python == NULL) {
if (!module) {
/* We are in the build directory so use the name of the
executable - we know that the absolute path is passed */
- PyMem_RawFree(*calculate->argv0_path);
+ PyMem_RawFree(calculate->argv0_path);
calculate->argv0_path = _PyMem_RawWcsdup(pathconfig->program_full_path);
if (calculate->argv0_path == NULL) {
status = _PyStatus_NO_MEMORY();
}
/* Use the location of the library as argv0_path */
- PyMem_RawFree(*calculate->argv0_path);
- calculate->argv0_path = wbuf
+ PyMem_RawFree(calculate->argv0_path);
+ calculate->argv0_path = wbuf;
return _PyStatus_OK();
done: