Skip to content

Commit d53bb2e

Browse files
committed
Fixed bug #8673 : Error unable to allocate memory from operating system.
1 parent 57f3953 commit d53bb2e

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
@@ -6064,7 +6064,8 @@ bool rem_port::sendInlineBlob(PACKET* sendL, Rtr* rtr, SQUAD blobId, ULONG maxSi
60646064

60656065
ServAttachment att = port_context->rdb_iface;
60666066

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

@@ -6151,6 +6152,7 @@ bool rem_port::sendInlineBlob(PACKET* sendL, Rtr* rtr, SQUAD blobId, ULONG maxSi
61516152
}
61526153

61536154
blob->close(&status);
6155+
blob.clear();
61546156

61556157
p_blob->p_blob_info.cstr_address = info;
61566158
p_blob->p_blob_data = &buff;

0 commit comments

Comments
 (0)