projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18d8437
)
[PATCH] blktrace: don't leak the accepted socket fd on reconnect
author
Jens Axboe
<axboe@suse.de>
Wed, 15 Feb 2006 09:32:20 +0000
(10:32 +0100)
committer
Jens Axboe
<axboe@suse.de>
Wed, 15 Feb 2006 09:32:20 +0000
(10:32 +0100)
blktrace.c
patch
|
blob
|
blame
|
history
diff --git
a/blktrace.c
b/blktrace.c
index dd0d5bfb5dbe617a8ba26de7db7adbc812bbd7fb..3cecc1e6839f47547503bfcb899c2caaced76547 100644
(file)
--- a/
blktrace.c
+++ b/
blktrace.c
@@
-1349,6
+1349,9
@@
repeat:
free(device_information);
device_information = NULL;
ncpus = ndevs = 0;
+
+ close(net_in_fd);
+ net_in_fd = -1;
goto repeat;
}