From: Maxime Coquelin Subject: Re: [PATCH 1/2] vhost: fix memory leak on realloc failure Date: Mon, 14 Jan 2019 11:20:00 +0100 Message-ID: <39033fe1-4412-73fc-69c2-d41e29af0b04@redhat.com> References: <20190114033444.13026-1-tiwei.bie@intel.com> <20190114033444.13026-2-tiwei.bie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@dpdk.org To: Tiwei Bie , zhihong.wang@intel.com, dev@dpdk.org Return-path: In-Reply-To: <20190114033444.13026-2-tiwei.bie@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/14/19 4:34 AM, Tiwei Bie wrote: > When realloc() fails, the original block isn't freed. > > Fixes: e246896178e6 ("vhost: get guest/host physical address mappings") > Cc: stable@dpdk.org > > Signed-off-by: Tiwei Bie > --- > lib/librte_vhost/vhost_user.c | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: Maxime Coquelin Thanks, Maxime