Re: [PATCH RESEND] 9p: Fix memory leak in v9fs_mount

2020-07-08 Thread Zhengbin (OSKernel)
Is this OK? I don't see it on linux-next On 2020/6/15 18:20, Dominique Martinet wrote: Zheng Bin wrote on Mon, Jun 15, 2020: v9fs_mount v9fs_session_init v9fs_cache_session_get_cookie v9fs_random_cachetag -->alloc cachetag v9ses->fscache = fscache_acqui

Re: [PATCH v2] nbd: Fix memory leak in nbd_add_socket

2020-06-21 Thread Zhengbin (OSKernel)
On 2020/6/20 20:05, Markus Elfring wrote: If we add first socket to nbd, config->socks is malloced but num_connections does not update(nsock's allocation fail), the memory is leaked. Cause in later nbd_config_put(), will only free config->socks when num_connections is not 0. Let nsock's alloca