Searched refs:buffer_new (Results 1 – 1 of 1) sorted by relevance
67 void *buffer_new = nullptr; in ProcOnResult() local68 buffer_new = malloc(size); in ProcOnResult()69 if (buffer_new == nullptr) { in ProcOnResult()72 if (memcpy_s(buffer_new, size, buffer, size) != EOK) { in ProcOnResult()73 free(buffer_new); in ProcOnResult()74 buffer_new = nullptr; in ProcOnResult()78 if (!parcel.ParseFrom(reinterpret_cast<uintptr_t>(buffer_new), size)) { in ProcOnResult()80 free(buffer_new); in ProcOnResult()81 buffer_new = nullptr; in ProcOnResult()