Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix logic for growing mailbox memory #4089

Closed
wants to merge 1 commit into from

Conversation

jpalus
Copy link
Contributor

@jpalus jpalus commented Oct 29, 2023

  • What does this PR do?

Plugs memory leak when growing memory space for mailbox.

  • What are the relevant issue numbers?

Fixes #4087

@jpalus jpalus requested a review from a team as a code owner October 29, 2023 16:59
@jpalus
Copy link
Contributor Author

jpalus commented Oct 29, 2023

What I don't particularly like about mx_alloc_memory is that despite its name req_size does not represent size but rather a maximum index to be used in m->emails so size-1. Possibly to fixed/adjusted but better to do it independently.

@flatcap
Copy link
Member

flatcap commented Oct 30, 2023

What I don't particularly like about mx_alloc_memory...

hehe, there are quite a few areas like this.
Code that's clearly evolved a long way from its original purpose.

Possibly to fixed/adjusted but better to do it independently.

Please. Suggestions welcome.

One of the long-term goals is to finally separate the GUI from the backends.
When that's done, it should be possible to kill mx_alloc_memory().

@flatcap
Copy link
Member

flatcap commented Oct 30, 2023

I've folded this PR into #4090.
Thanks

@flatcap flatcap closed this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak after opening maildir mailbox
2 participants