httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soc-r...@apache.org
Subject svn commit: r280697 - /httpd/mod_smtpd/trunk/smtp_util.c
Date Tue, 13 Sep 2005 22:34:03 GMT
Author: soc-rian
Date: Tue Sep 13 15:34:00 2005
New Revision: 280697

URL: http://svn.apache.org/viewcvs?rev=280697&view=rev
Log:
fixed another temporary mem leak

Modified:
    httpd/mod_smtpd/trunk/smtp_util.c

Modified: httpd/mod_smtpd/trunk/smtp_util.c
URL: http://svn.apache.org/viewcvs/httpd/mod_smtpd/trunk/smtp_util.c?rev=280697&r1=280696&r2=280697&view=diff
==============================================================================
--- httpd/mod_smtpd/trunk/smtp_util.c (original)
+++ httpd/mod_smtpd/trunk/smtp_util.c Tue Sep 13 15:34:00 2005
@@ -186,11 +186,11 @@
      smtpd_add_input_filter_handle(ap_filter_rec_t *frec, void *ctx, 
                                    smtpd_conn_rec *scr)
 {
-    apr_pool_t* p = scr->p;
-    ap_filter_t *f = apr_palloc(p, sizeof(*f));
+    smtpd_trans_rec *str = scr->transaction;
+    ap_filter_t *f = apr_palloc(str->p, sizeof(*f));
     ap_filter_t **outf;
 
-    outf = &(scr->transaction->input_filters);
+    outf = &(str->input_filters);
 
     f->frec = frec;
     f->ctx = ctx;



Mime
View raw message