projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3385647
)
WPS: Fix a potential memory leak on wps_init() error path
author
Jouni Malinen
<jouni@qca.qualcomm.com>
Tue, 2 Oct 2012 13:51:27 +0000
(16:51 +0300)
committer
Jouni Malinen
<j@w1.fi>
Tue, 2 Oct 2012 13:51:27 +0000
(16:51 +0300)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/wps/wps.c
patch
|
blob
|
history
diff --git
a/src/wps/wps.c
b/src/wps/wps.c
index
4c2322d
..
af24e5f
100644
(file)
--- a/
src/wps/wps.c
+++ b/
src/wps/wps.c
@@
-110,6
+110,7
@@
struct wps_data * wps_init(const struct wps_config *cfg)
data->new_ap_settings =
os_malloc(sizeof(*data->new_ap_settings));
if (data->new_ap_settings == NULL) {
+ os_free(data->dev_password);
os_free(data);
return NULL;
}