[ovs-dev] [PATCH] dpdk: Fixes memory leak in dpdk_init__().

Daniele Di Proietto diproiettod at vmware.com
Sat Feb 11 00:21:28 UTC 2017






On 10/02/2017 08:46, "Aaron Conole" <aconole at redhat.com> wrote:

>nickcooper-zhangtonghao <nic at opencloud.tech> writes:
>
>> If users configure the 'vhost-sock-dir' for dpdk, the memory
>> allocated by xstrdup(ovs_rundir()) is not freed. This patch
>> allows the process_vhost_flags to xstrdup() for val or
>> default_val according to configuration and the caller must
>> free new_val when it is no longer needed.
>>
>> Fixes: 01961bbdd34a ("dpdk: New module with some code from netdev-dpdk.")
>> CC: Daniele Di Proietto <diproiettod at vmware.com>
>> Signed-off-by: nickcooper-zhangtonghao <nic at opencloud.tech>
>> ---
>
>Great catch!
>
>Reviewed-by: Aaron Conole <aconole at redhat.com>

Oops, thanks for the fix!

pushed to master and branch-2.7


More information about the dev mailing list