]> granicus.if.org Git - apache/commitdiff
Close file in error path.
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 9 Jun 2013 16:00:18 +0000 (16:00 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 9 Jun 2013 16:00:18 +0000 (16:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491234 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_remoteip.c

index 79aa6a940ab62d823151f5fa24960adddb904ee7..b0af3a328982392dad16080c9471d59b4ccd6051 100644 (file)
@@ -203,6 +203,7 @@ static const char *proxylist_read(cmd_parms *cmd, void *cfg,
             }
             errmsg = proxies_set(cmd, cfg, arg);
             if (errmsg) {
+                ap_cfg_closefile(cfp);
                 errmsg = apr_psprintf(cmd->pool, "%s at line %d of %s",
                                       errmsg, cfp->line_number, filename);
                 return errmsg;