Comments (8)
Could you please provide a sample (yaml) or gdb call stack ?
The example delete_pod has passed valgrind test. No memory leak is reported.
from c.
Hi @ityuhui
In normal cases, memory leak does not occur, but if (__namespace == NULL)
Memory leak occurs.
char* localVarToReplace_name = malloc(sizeOfPathParams_name);
sprintf(localVarToReplace_name, "{%s}", "name");
localVarPath = strReplace(localVarPath, localVarToReplace_name, name);
// Path Params
long sizeOfPathParams_namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }");
if(_namespace == NULL) {
goto end;
}
============= end ==============
end:
free(localVarPath);
return NULL;
from c.
Thank you @minerba I got it.
It's a problem. But I think its severity is low because only if _namespace == NULL
, it will reproduce. So I will fix this some times later.
The fix solution is:
- define all pathParams at the begining and initialize their value to "NULL"
- free all non-NULL pathParams at the
end
code block.
https://github.com/OpenAPITools/openapi-generator/blob/fbb61658dfbcc2c1f5087511b0f74756553791ad/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache#L116
from c.
@ityuhui thanks for your reply. I hope it will be fixed soon
from c.
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:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale
- Mark this issue or PR as rotten with
/lifecycle rotten
- Close this issue or PR with
/close
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
from c.
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle rotten
- Close this issue or PR with
/close
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
from c.
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Reopen this issue or PR with
/reopen
- Mark this issue or PR as fresh with
/remove-lifecycle rotten
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
from c.
@k8s-triage-robot: Closing this issue.
In response to this:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied- After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied- After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closedYou can:
- Reopen this issue or PR with
/reopen
- Mark this issue or PR as fresh with
/remove-lifecycle rotten
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
from c.
Related Issues (20)
- `sendInitialEvents` error HOT 14
- v0.8.0 release plan HOT 2
- CoreV1API_listPodForAllNamespaces/CoreV1API_listNamespacedPod API return 422 error HOT 19
- Is it possible to change the cURL HTTP accpet header? HOT 1
- Creating Deployment Patch using the AppsV1API_patchNamespacedDeployment HOT 3
- doc: Some parameter types of functions in the API documentation are wrong
- How to get label key and value? HOT 3
- v0.9.0 release plan HOT 2
- libwebsockets make fails with error: conflicting types for ‘lws_tls_server_abort_connection HOT 4
- How to compile as static .a file? HOT 7
- v1_pod_list_parseFromJSON does not parse pod statuses HOT 7
- CoreV1API_readNamespacedPodLog doesn't work and contains a segfault HOT 9
- Both Custom Resource Definitions and Custom Resources strip the spec from their object. HOT 1
- Feature Request: Decoupling parsing from network message passing HOT 5
- Remove printf from internal function HOT 1
- Issue with Running list_pod_incluster Example Code - HTTP 422 HOT 5
- Conan support HOT 2
- Using the operating system provided websockets library HOT 2
- Need bump actions/checkout@v3 HOT 1
- v0.10.0 release plan HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c.