apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584023 - /apr/apr/trunk/test/testdup.c
Date Fri, 12 Oct 2007 01:49:48 GMT
Author: wrowe
Date: Thu Oct 11 18:49:48 2007
New Revision: 584023

URL: http://svn.apache.org/viewvc?rev=584023&view=rev
Log:
When we are done with apr_file_t's shall we close them?

Modified:
    apr/apr/trunk/test/testdup.c

Modified: apr/apr/trunk/test/testdup.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testdup.c?rev=584023&r1=584022&r2=584023&view=diff
==============================================================================
--- apr/apr/trunk/test/testdup.c (original)
+++ apr/apr/trunk/test/testdup.c Thu Oct 11 18:49:48 2007
@@ -128,6 +128,8 @@
     rv = apr_file_dup2(errfile, saveerr, p);
     ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
     ABTS_PTR_NOTNULL(tc, errfile);
+
+    apr_file_close(saveerr);
 }
 
 static void test_dup2_readwrite(abts_case *tc, void *data)
@@ -178,6 +180,8 @@
     rv = apr_file_dup2(errfile, saveerr, p);
     ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
     ABTS_PTR_NOTNULL(tc, errfile);
+
+    apr_file_close(saveerr);
 }
 
 abts_suite *testdup(abts_suite *suite)



Mime
View raw message