Searched refs:allocated_buf (Results 1 – 1 of 1) sorted by relevance
44 char* allocated_buf = nullptr; in getcwd() local52 buf = allocated_buf = static_cast<char*>(malloc(allocated_size)); in getcwd()61 free(allocated_buf); in getcwd()67 if (allocated_buf != nullptr) { in getcwd()69 buf = strdup(allocated_buf); in getcwd()70 free(allocated_buf); in getcwd()72 buf = allocated_buf; in getcwd()