projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de19bc2
)
linux-platform: fix a file descriptor leak
author
Lubomir Rintel
<lkundrak@v3.sk>
Thu, 21 Jan 2016 15:31:29 +0000
(16:31 +0100)
committer
Lubomir Rintel
<lkundrak@v3.sk>
Thu, 21 Jan 2016 15:32:23 +0000
(16:32 +0100)
Coverity: CID 59384 (#3-1 of 3): Resource leak (RESOURCE_LEAK)26.
leaked_handle: Handle variable fd going out of scope leaks the handle
src/platform/nm-linux-platform.c
patch
|
blob
|
history
diff --git
a/src/platform/nm-linux-platform.c
b/src/platform/nm-linux-platform.c
index
f516680
..
2ea9360
100644
(file)
--- a/
src/platform/nm-linux-platform.c
+++ b/
src/platform/nm-linux-platform.c
@@
-4827,6
+4827,7
@@
tun_add (NMPlatform *platform, const char *name, gboolean tap,
if (out_link)
*out_link = obj ? &obj->link : NULL;
+ close (fd);
return !!obj;
}