File txtP1Ud3lhV8L.txt of Package tla
#! /bin/sh /usr/share/dpatch/dpatch-run
## 07-changeset-fd-leak.dpatch by Sergio Gelato <address@hidden>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Remember to close file descriptors before they go out of scope.
@DPATCH@
diff -urNad tla-1.3.5+dfsg-14~/src/tla/libarch/make-changeset.c tla-1.3.5+dfsg-14/src/tla/libarch/make-changeset.c
--- tla-1.3.5+dfsg-14~/src/tla/libarch/make-changeset.c 2006-07-20 08:34:40.000000000 +0200
+++ tla-1.3.5+dfsg-14/src/tla/libarch/make-changeset.c 2009-03-31 00:19:39.449388785 +0200
@@ -1485,6 +1485,9 @@
safe_printfmt (orig_out_fd, "%s\n", orig_target);
safe_printfmt (mod_out_fd, "%s\n", mod_target);
+ safe_close (orig_out_fd);
+ safe_close (mod_out_fd);
+
lim_free (0, patch_basename_path);
lim_free (0, orig_patch);
lim_free (0, mod_patch);