cfg80211: fix memory leak of new_ie
authorSara Sharon <sara.sharon@intel.com>
Wed, 30 Jan 2019 06:48:21 +0000 (08:48 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2019 12:56:37 +0000 (13:56 +0100)
commitbede8d2996475017918364ec3d0d2bc1558659e1
treec3d78bb8831a210c65f83536d23435c343041158
parentc17fe043a3b79255c6cbe76aafb594849fac0005
cfg80211: fix memory leak of new_ie

new_ie is used as a temporary storage for the generation of
the new elements. However, after copying from it the memory
wasn't freed and leaked. Free it.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c