Potential memory leak becaue of wrong variable check.
Potential memory leak becaue of wrong variable check.

in rtnl_link_vf_vlan_alloc() function allocating memory to
vlans while checking NULL or not vf_vlans.
it can cause memory leak.

Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Rohit Pratap Singh <rohit.s@samsung.com>

Fixes: 5d6e43ebef12deadf31fccfa46c0b34892675d36

http://lists.infradead.org/pipermail/libnl/2017-August/002373.html

greearb/libnl-ct,tklauser/libnl,greearb/libnl-ct,tklauser/libnl,greearb/libnl-ct,tklauser/libnl,thom311/libnl,thom311/libnl,thom311/libnl,tklauser/libnl