memif: memory leak when deleting memif interface 59/35159/2
authorSteven Luong <sluong@cisco.com>
Mon, 31 Jan 2022 21:30:37 +0000 (13:30 -0800)
committerDamjan Marion <dmarion@me.com>
Mon, 7 Feb 2022 19:04:18 +0000 (19:04 +0000)
commit261a059b3d03b00e85cf91bd75158f9b6772762e
treebd619ff5fd8527c1f6ef96a4d4668e27848fe106
parenta47203128ba6a9d840280377a8dd3a72888c3708
memif: memory leak when deleting memif interface

When deleting a memif interface, there is a memory leak in
mif->local_disc_string. The code that leads to memory leak is
memif_delete_if -> memif_disconect -> vec_dup

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I579c743c3d47770131153e083e65f6cd899067b3
src/plugins/memif/memif.c