GNU nano - Bugs: bug #61331, small memory leak when an rc...
You are not allowed to post comments on this tracker with your current authentication level.
bug #61331: small memory leak when an rc option with an argument is specified twice
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Mon 11 Oct 2021 02:58:06 PM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Mon 11 Oct 2021 03:22:12 PM UTC, comment #2: |
Benno Schulenberg <bens> |
Mon 11 Oct 2021 03:05:22 PM UTC, comment #1: Bug exists since at least version 2.1.10. Bug was found by compiling with -fsanitize=address and putting a second 'set matchbrackets' at the end of my ~/.nanorc to test something.
|
Benno Schulenberg <bens> |
Mon 11 Oct 2021 02:58:06 PM UTC, original submission:
To reproduce, run:
Then type ^X to immediately exit from nano.
|
Benno Schulenberg <bens> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-12-16 | bens | Open/Closed | Open | Closed | |
2021-10-14 | bens | Summary | some memory leaks when an rc option with an argument is specified twice | small memory leak when an rc option with an argument is specified twice | |
2021-10-11 | bens | Status | None | Fixed | |
Assigned to | None | bens | |||
2021-10-11 | bens | Summary | some memory leaks when an rc option with argument is specified twice | some memory leaks when an rc option with an argument is specified twice |
Powered by Savane 3.13-f8d8.
Corresponding source code
Fixed in git, commit 42610db8, by freeing each of the options-with-an-argument before assigning to them. (Freeing NULL is not a problem -- it is just a small waste of time, but... who uses these options anyway?)