Thread (5 messages) 5 messages, 2 authors, 2020-07-26

Re: [PATCH v2] mdadm/Detail: show correct state for cluster-md array

From: Wols Lists <hidden>
Date: 2020-07-26 08:14:08

On 22/07/20 08:20, heming.zhao@suse.com wrote:
During I was creating patch, I found the ExamineBitmap() has memory leak issue.
I am not sure whether the leak issue should be fixed.
(Because when mdadm cmd finish, all leaked memory will be released).
The IsBitmapDirty() used some of ExamineBitmap() code, and I only fixed leaked issue in IsBitmapDirty().
My gut feel?

Firstly, "do things right" - it should be fixed.
Second - are you sure this code is not run while mdadm is running as a
daemon? It's all very well saying it will be released, but but mdadm
could be running for a looonnngg time.

Cheers,
Wol
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help