Closed minerba closed 1 year ago
Do you mean the memory leak of localVarPath
if _namespace == NULL
?
@ityuhui yes. If the case does not occur at all, it would be better to remove the case "if(_namespace==NULL)".
The parameter _namespace
is required for the "Namespaced" functions such as AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler
, so if(_namespace==NULL)
needs to be checked.
This issue is a memory leak, what I try to fix is to free the memory when _namespace==NULL
.
Checked the code and found localVarPath
would be freed.
Is there a memroy leak now ?
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Hi @ityuhui
I found some Leak Case in AutoscalingV2beta2.
Last time I request this Issue. I know this is rare case that Namespace is Null.
But If Namespace is Null, It Occur some problem in System.
`v2beta2_horizontal_pod_autoscaler_list_t AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t apiClient, char _namespace , char pretty , int allowWatchBookmarks , char _continue , char fieldSelector , char labelSelector , int limit , char resourceVersion , int timeoutSeconds , int watch ) { list_t localVarQueryParameters = list_create(); list_t localVarHeaderParameters = NULL; list_t localVarFormParameters = NULL; list_t localVarHeaderType = list_create(); list_t localVarContentType = NULL; char localVarBodyParameters = NULL;
I think It need to Fix in OpenApiGenerator. Can you fix it?