From: marco Date: Fri, 18 Nov 2011 01:55:41 +0000 (-0600) Subject: Merge branch 'master' of ssh://opensource.conformal.com/git/scrotwm X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=82e158a61fc38c602d1860d69ec260f51a4e1f87;hp=c9b0bc3c9d47a06442202a38b89d2363c8428dd3;p=spectrwm.git Merge branch 'master' of ssh://opensource.conformal.com/git/scrotwm --- 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); }