fix resource leak of netdev on error path found by coverity

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
fix free of alloca()d buffer (found by coverity)

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>