|
Bugzilla – Full Text Bug Listing |
| Summary: | Potential leak of memory in bench-simulator.cc | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | natale.patriciello |
| Component: | general | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | tomh |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: |
Patch
Memleak patch Style patch |
||
I suggest to separate whitespace changes and the bug fix into two patches. The bug fix is a single statement. The whitespace change is OK as a second step but please check the first change proposed. Created attachment 2655 [details]
Memleak patch
Thank you Tom, I separated them. This is for the memleak.
Created attachment 2656 [details]
Style patch
Here the style patch.
fixed in 12402:69bffcd3c8fb |
Created attachment 2649 [details] Patch I have checked the source file, there is a potential memory leak. Nothing very dramatic, but still an improvement. Patch attached with also style fix. Detected through clang static analyzer.