Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 807c8c8

Browse files
bourtembIgor Khokhriakov
authored andcommitted
Revert changes introduced in svn r28853.
This reintroduces a small memory leak but will avoid crashes reported in the following tickets: SF814, SF823 and SF827.
1 parent c59fe7f commit 807c8c8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cppapi/server/blackbox.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,12 +1102,8 @@ void BlackBox::inc_indexes()
11021102
void BlackBox::get_client_host()
11031103
{
11041104
omni_thread *th_id = omni_thread::self();
1105-
bool dummy = false;
11061105
if (th_id == NULL)
1107-
{
11081106
th_id = omni_thread::create_dummy();
1109-
dummy = true;
1110-
}
11111107

11121108
omni_thread::value_t *ip = th_id->get_value(key);
11131109
if (ip == NULL)
@@ -1148,9 +1144,6 @@ void BlackBox::get_client_host()
11481144
}
11491145
else
11501146
strcpy(box[insert_elt].host_ip_str,(static_cast<client_addr *>(ip))->client_ip);
1151-
1152-
if (dummy == true)
1153-
omni_thread::release_dummy();
11541147
}
11551148

11561149
//+-------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)