Skip to content

Commit 1cb5fad

Browse files
committed
only release non-null parent_params
1 parent 936fe55 commit 1cb5fad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/proxy/http/HttpTransact.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,10 @@ class HttpTransact
859859
free_internal_msg_buffer();
860860
ats_free(internal_msg_buffer_type);
861861

862-
ParentConfig::release(parent_params);
863-
parent_params = nullptr;
862+
if (parent_params != nullptr) {
863+
ParentConfig::release(parent_params);
864+
parent_params = nullptr;
865+
}
864866

865867
hdr_info.client_request.destroy();
866868
hdr_info.client_response.destroy();

0 commit comments

Comments
 (0)