[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/6] libnetfs: fix memory leak
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/6] libnetfs: fix memory leak |
Date: |
Mon, 2 Jun 2014 02:12:57 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Sun 01 Jun 2014 22:03:00 +0200, a écrit :
> * libnetfs/trans-callback.c (_netfs_translator_callback2_fn): Free
> user if creating the protid failed.
Ack.
> ---
> libnetfs/trans-callback.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/libnetfs/trans-callback.c b/libnetfs/trans-callback.c
> index 4dec162..f4f0c62 100644
> --- a/libnetfs/trans-callback.c
> +++ b/libnetfs/trans-callback.c
> @@ -74,7 +74,10 @@ _netfs_translator_callback2_fn (void *cookie1, void
> *cookie2, int flags,
> return 0;
> }
> else
> - return errno;
> + {
> + iohelp_free_iouser (user);
> + return errno;
> + }
> }
>
> fshelp_fetch_root_callback1_t _netfs_translator_callback1 =
> --
> 2.0.0.rc2
>
--
Samuel
void packerFlushTheToiletFirstThingInTheMorning( void* arg )
-+- chromium's source code -+-