Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E5182200B73 for ; Mon, 29 Aug 2016 12:35:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E3BD6160AB8; Mon, 29 Aug 2016 10:35:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3612F160AA7 for ; Mon, 29 Aug 2016 12:35:27 +0200 (CEST) Received: (qmail 89290 invoked by uid 500); 29 Aug 2016 10:35:21 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 89280 invoked by uid 99); 29 Aug 2016 10:35:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2016 10:35:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 506B0C6BA3 for ; Mon, 29 Aug 2016 10:35:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.481 X-Spam-Level: X-Spam-Status: No, score=0.481 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.519] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fki2l3eWC7aR for ; Mon, 29 Aug 2016 10:35:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A4A135FC55 for ; Mon, 29 Aug 2016 10:35:20 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0C99DE05DC for ; Mon, 29 Aug 2016 10:35:20 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 0ABF83A028F for ; Mon, 29 Aug 2016 10:35:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1758202 - /subversion/trunk/subversion/mod_dav_svn/repos.c Date: Mon, 29 Aug 2016 10:35:20 -0000 To: commits@subversion.apache.org From: kotkov@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160829103520.0ABF83A028F@svn01-us-west.apache.org> archived-at: Mon, 29 Aug 2016 10:35:28 -0000 Author: kotkov Date: Mon Aug 29 10:35:19 2016 New Revision: 1758202 URL: http://svn.apache.org/viewvc?rev=1758202&view=rev Log: * subversion/mod_dav_svn/repos.c (close_filter): Cleanup the brigade after the ap_pass_brigade() call. Although it's not strictly required in this stream's close_fn, because we always call apr_brigade_destroy() upon returning from the deliver() hook, generally, this is the right thing to do. Modified: subversion/trunk/subversion/mod_dav_svn/repos.c Modified: subversion/trunk/subversion/mod_dav_svn/repos.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/repos.c?rev=1758202&r1=1758201&r2=1758202&view=diff ============================================================================== --- subversion/trunk/subversion/mod_dav_svn/repos.c (original) +++ subversion/trunk/subversion/mod_dav_svn/repos.c Mon Aug 29 10:35:19 2016 @@ -3268,7 +3268,10 @@ close_filter(void *baton) /* done with the file. write an EOS bucket now. */ bkt = apr_bucket_eos_create(dc->output->c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(dc->bb, bkt); - if ((status = ap_pass_brigade(dc->output, dc->bb)) != APR_SUCCESS) + status = ap_pass_brigade(dc->output, dc->bb); + apr_brigade_cleanup(dc->bb); + + if (status != APR_SUCCESS) return svn_error_create(status, NULL, "Could not write EOS to filter"); return SVN_NO_ERROR;