Skip to content

Commit b14cdb1

Browse files
committed
fixed memory leak
1 parent 165b392 commit b14cdb1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/webdriver/commands/session_with_id.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ bool SessionWithID::DoesDelete() const {
3131
}
3232

3333
void SessionWithID::ExecuteGet(Response* const response) {
34-
DictionaryValue *temp_value = new DictionaryValue();
35-
36-
temp_value = session_->capabilities().caps->DeepCopy();
34+
DictionaryValue *temp_value = session_->capabilities().caps->DeepCopy();
3735

3836
response->SetValue(temp_value);
3937
}

0 commit comments

Comments
 (0)