X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=e0952156c8ac6534c1cd5f7b475162b1a9d87b73;hb=60d2953634a89f9ed05d6969806e5c61de403b55;hp=d15a6e611e83fcb909db367d58d7255a0bb7b09d;hpb=befcf159170f6dbb92a44afe88ec736450133105;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index d15a6e6..e095215 100644 --- 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"); - return; + goto done; } rbytes = read(select_resp_pipe[0], resp, MAX_RESP_LEN); @@ -3249,6 +3249,7 @@ search_do_resp(void) free(s); } done: + close(select_resp_pipe[0]); free(resp); }