projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e542b40
)
Fix use-after-free issue with pid_file in hostapd termination
author
Jouni Malinen
<jouni.malinen@atheros.com>
Tue, 10 Nov 2009 15:05:28 +0000
(17:05 +0200)
committer
Jouni Malinen
<j@w1.fi>
Tue, 10 Nov 2009 15:05:28 +0000
(17:05 +0200)
hostapd/main.c
patch
|
blob
|
history
diff --git
a/hostapd/main.c
b/hostapd/main.c
index
b582b2d
..
8bcc745
100644
(file)
--- a/
hostapd/main.c
+++ b/
hostapd/main.c
@@
-460,13
+460,13
@@
int main(int argc, char *argv[])
ret = 0;
out:
- os_free(pid_file);
/* Deinitialize all interfaces */
for (i = 0; i < interfaces.count; i++)
hostapd_interface_deinit(interfaces.iface[i]);
os_free(interfaces.iface);
hostapd_global_deinit(pid_file);
+ os_free(pid_file);
return ret;
}