X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=fa384f9e224756f1da2a56cace6b107bfedebd75;hb=5b0a67a9cb6b64872dfdfc549632782989820174;hp=b3a9077f0011cce5edb5c9b890341039d9a29c0f;hpb=c9b0bc3c9d47a06442202a38b89d2363c8428dd3;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index b3a9077..fa384f9 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -3218,7 +3218,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); @@ -3250,6 +3250,7 @@ search_do_resp(void) free(s); } done: + close(select_resp_pipe[0]); free(resp); }