Skip to content

Fix TRITONSERVER_Message leak in BackendModelInstance constructor - #125

Open
DivyaNarahari97 wants to merge 1 commit into
triton-inference-server:mainfrom
DivyaNarahari97:fix-model-instance-host-policy-message-leak
Open

Fix TRITONSERVER_Message leak in BackendModelInstance constructor#125
DivyaNarahari97 wants to merge 1 commit into
triton-inference-server:mainfrom
DivyaNarahari97:fix-model-instance-host-policy-message-leak

Conversation

@DivyaNarahari97

Copy link
Copy Markdown

TRITONBACKEND_ModelInstanceHostPolicy returns a TRITONSERVER_Message that the caller owns, but it was never deleted after being parsed, leaking one message object on every model instance load. This mirrors the existing delete-after-parse pattern already used for the model config message in BackendModel::ParseModelConfig.

TRITONBACKEND_ModelInstanceHostPolicy returns a TRITONSERVER_Message
that the caller owns, but it was never deleted after being parsed,
leaking one message object on every model instance load. This mirrors
the existing delete-after-parse pattern already used for the model
config message in BackendModel::ParseModelConfig.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant