Skip to content

memanalyze: fix warnings#18049

Closed
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:meman
Closed

memanalyze: fix warnings#18049
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:meman

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Jul 28, 2025

Also fix possibly missing reallocated memory from 'Total allocated':

Use of uninitialized value $size in addition (+) at tests/memanalyze.pl line 240, <$fileh> line 4.

Ref: https://github.com/curl/curl/actions/runs/16565283280/job/46843800711?pr=18049#step:39:3834

Ref: https://github.com/curl/curl/actions/runs/16556860012/job/46819517495?pr=17927#step:39:156

Follow-up to fc98a63 #18048
Follow-up to 2ec5455 #17877

increment with newsize instead of the undefined size.

It looks like a copy-paste issue, caught by a warning, but I can't
verify it.

```
Use of uninitialized value $size in addition (+) at ../../tests/memanalyze.pl line 240, <$fileh> line 4.
```
https://github.com/curl/curl/actions/runs/16565283280/job/46843800711?pr=18049#step:39:3834
@vszakats vszakats changed the title memanalyze: fix warnings memanalyze: fix warnings, and a possible error Jul 28, 2025
@vszakats vszakats changed the title memanalyze: fix warnings, and a possible error memanalyze: fix warnings Jul 28, 2025
@vszakats vszakats closed this in 9a68a86 Jul 28, 2025
@vszakats vszakats deleted the meman branch July 28, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants

Comments