Merge branch 'jk/upload-pack-keepalive'
[gitweb.git] / perl / Git / SVN / Ra.pm
index 75ecc425b6ebbf2cb1941b6b6bca78f8d0b70d62..a7b0119ee5945e062aee27a8bb21bf7c818fb8c6 100644 (file)
@@ -32,6 +32,14 @@ BEGIN
        }
 }
 
+# serf has a bug that leads to a coredump upon termination if the
+# remote access object is left around (not fixed yet in serf 1.3.1).
+# Explicitly free it to work around the issue.
+END {
+       $RA = undef;
+       $ra_invalid = 1;
+}
+
 sub _auth_providers () {
        my @rv = (
          SVN::Client::get_simple_provider(),