diff --git a/fdrd.c b/fdrd.c index a899110..af35b13 100644 --- a/fdrd.c +++ b/fdrd.c @@ -553,6 +553,9 @@ saveto(struct instance *insp, struct item *itp) perror(itp->target); } } + free(buf); + close(wfd); + close(rfd); }