kubernetes-client / c

Official C client library for Kubernetes
Apache License 2.0
146 stars 46 forks source link

Fix memory leak when http request carries parameters #42

Closed ityuhui closed 3 years ago

ityuhui commented 3 years ago

This PR fixes the memory leak found in https://github.com/kubernetes-client/c/pull/39

When http request carries parameters (e.g. watch=1 ), the original code does not release the memory of the parameters.

The issues are fixed by the PR 8096 and 8211 in openapi-generator, now re-generate the client code to merge the fixes.

ityuhui commented 3 years ago

/cc @brendandburns

brendandburns commented 3 years ago

/lgtm /approve

k8s-ci-robot commented 3 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, ityuhui

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes-client/c/blob/master/OWNERS)~~ [brendandburns,ityuhui] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment