ndptool: fix potential memory leak caused by strdup
ndptool: fix potential memory leak caused by strdup

We use strdup to copy the parameters. As strdup will call malloc when
obtain the memory, we need to free them before exit, or there will be
memory leak. This is found by covscan.

Signed-off-by: Hangbin Liu <7eef14c73bcfaeccf0ed39fc029ee0e09fbfe9fe@redhat.com>
Signed-off-by: Jiri Pirko <1b548d10035ae428195c41f5d55eedb1437ccd8a@mellanox.com>

jpirko/libndp,jpirko/libndp