* path.cc (path_conv::set_normalized_path): Use crealloc_abort to avoid a
memory leak. * path.h (path_conv::operator =): Just use cstrdup to allocate normalized_path, avoiding attempt to free a pointer which is allocated in another pc.
This commit is contained in:
@ -217,7 +217,7 @@ class path_conv
|
||||
{
|
||||
memcpy (this, &pc, sizeof pc);
|
||||
path = cstrdup (pc.path);
|
||||
set_normalized_path (pc.normalized_path);
|
||||
normalized_path = cstrdup(pc.normalized_path);
|
||||
wide_path = NULL;
|
||||
return *this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user