Skip to content

Commit 8bb8209

Browse files
committed
Fixed bug #8673 : Error unable to allocate memory from operating system.
1 parent daed3df commit 8bb8209

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/remote/server/server.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6109,7 +6109,8 @@ bool rem_port::sendInlineBlob(PACKET* sendL, Rtr* rtr, SQUAD blobId, ULONG maxSi
61096109

61106110
ServAttachment att = port_context->rdb_iface;
61116111

6112-
ServBlob blob(att->openBlob(&status, rtr->rtr_iface, &blobId, 0, nullptr));
6112+
// openBlob() returns an IBlob with a reference count set to 1, no need to increment it.
6113+
ServBlob blob(REF_NO_INCR, att->openBlob(&status, rtr->rtr_iface, &blobId, 0, nullptr));
61136114
if (status.getState() & IStatus::STATE_ERRORS)
61146115
return false;
61156116

@@ -6196,6 +6197,7 @@ bool rem_port::sendInlineBlob(PACKET* sendL, Rtr* rtr, SQUAD blobId, ULONG maxSi
61966197
}
61976198

61986199
blob->close(&status);
6200+
blob.clear();
61996201

62006202
p_blob->p_blob_info.cstr_address = info;
62016203
p_blob->p_blob_data = &buff;

0 commit comments

Comments
 (0)