Re: question about memory leak in ip_mc_del1_src

2019-03-05 Thread David Miller
From: maowenan Date: Tue, 5 Mar 2019 11:33:03 +0800 > > > On 2019/3/5 2:16, David Miller wrote: >> From: maowenan >> Date: Mon, 4 Mar 2019 20:47:42 +0800 >> >>> pmc->tomb = psf; >>> rv = 1; //if it does not kfree(psf), will it >>> lead to memor

Re: question about memory leak in ip_mc_del1_src

2019-03-04 Thread maowenan
On 2019/3/5 2:16, David Miller wrote: > From: maowenan > Date: Mon, 4 Mar 2019 20:47:42 +0800 > >> pmc->tomb = psf; >> rv = 1; //if it does not kfree(psf), will it >> lead to memory leak after this line? > > pmc->tomb points to psf, why shoul

Re: question about memory leak in ip_mc_del1_src

2019-03-04 Thread David Miller
From: maowenan Date: Mon, 4 Mar 2019 20:47:42 +0800 > pmc->tomb = psf; > rv = 1; //if it does not kfree(psf), will it > lead to memory leak after this line? pmc->tomb points to psf, why should we free it?