diff --git a/src/add-ons/kernel/file_systems/netfs/shared/RequestUnflattener.cpp b/src/add-ons/kernel/file_systems/netfs/shared/RequestUnflattener.cpp index 41c99416c5..e682d68bfe 100644 --- a/src/add-ons/kernel/file_systems/netfs/shared/RequestUnflattener.cpp +++ b/src/add-ons/kernel/file_systems/netfs/shared/RequestUnflattener.cpp @@ -42,7 +42,7 @@ Reader::Read(int32 size, void** buffer, bool* mustFree) return B_NO_MEMORY; status_t error = Read(*buffer, size); if (error != B_OK) { - free(buffer); + free(*buffer); return error; } return error;