Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix an fd leak
[spectrwm.git]
/
scrotwm.c
diff --git
a/scrotwm.c
b/scrotwm.c
index
d15a6e6
..
e095215
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-3217,7
+3217,7
@@
search_do_resp(void)
if ((resp = calloc(1, MAX_RESP_LEN + 1)) == NULL) {
fprintf(stderr, "search: calloc\n");
if ((resp = calloc(1, MAX_RESP_LEN + 1)) == NULL) {
fprintf(stderr, "search: calloc\n");
- return;
+ goto done;
}
rbytes = read(select_resp_pipe[0], resp, MAX_RESP_LEN);
}
rbytes = read(select_resp_pipe[0], resp, MAX_RESP_LEN);
@@
-3249,6
+3249,7
@@
search_do_resp(void)
free(s);
}
done:
free(s);
}
done:
+ close(select_resp_pipe[0]);
free(resp);
}
free(resp);
}