api: fix use-after-free
api: fix use-after-free

Type: fix

Change-Id: I2a599c22d5770587fdd419e5d212c8527054d2e9
Signed-off-by: Benoît Ganne <38aad8ffcfa407b890d258e568f161530f66882d@cisco.com>

FDio/vpp,vpp-dev/vpp,vpp-dev/vpp,chrisy/vpp,FDio/vpp,vpp-dev/vpp,chrisy/vpp,FDio/vpp,chrisy/vpp,chrisy/vpp,chrisy/vpp,chrisy/vpp,FDio/vpp,vpp-dev/vpp,FDio/vpp,FDio/vpp,FDio/vpp,chrisy/vpp,vpp-dev/vpp,chrisy/vpp,vpp-dev/vpp,vpp-dev/vpp,FDio/vpp