<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,6 +37,7 @@ profr &lt;- function(expr, interval = 0.02, quiet = TRUE) {
     tc &lt;- textConnection(NULL, &quot;w&quot;)
     sink(tc)
     on.exit(sink(), add=TRUE)
+    on.exit(close(tc), add=TRUE)
   }
   
   Rprof(tmp, append=TRUE)</diff>
      <filename>R/profile.r</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e6d3c16841f8a57cd497610b4f34acd026b9a860</id>
    </parent>
  </parents>
  <author>
    <name>hadley</name>
    <email>h.wickham@gmail.com</email>
  </author>
  <url>http://github.com/hadley/profr/commit/c0c9c47861c3ed47ee151b8ff029a7b7944e8f6c</url>
  <id>c0c9c47861c3ed47ee151b8ff029a7b7944e8f6c</id>
  <committed-date>2008-06-10T12:36:03-07:00</committed-date>
  <authored-date>2008-06-10T12:36:03-07:00</authored-date>
  <message>Close connection on exit</message>
  <tree>1a8a1e8ded60e1c96fea96739a0c55edd9c3eadf</tree>
  <committer>
    <name>hadley</name>
    <email>h.wickham@gmail.com</email>
  </committer>
</commit>
