diff --git a/changelog b/changelog
--- a/changelog
+++ b/changelog
@@ -1,3 +1,10 @@
+pandoc (1.8.1.1)
+
+  * `markdown2pdf`:  Removed some debugging lines accidentally included
+    in the 1.8.1 release. With those lines, the temp directory is created
+    in the working directory, and it is not deleted.  This fix restores
+    the original behavior.
+
 pandoc (1.8.1)
 
   * Added `--ascii` option.  Currently supported only in HTML writer,
diff --git a/pandoc.cabal b/pandoc.cabal
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -1,5 +1,5 @@
 Name:            pandoc
-Version:         1.8.1
+Version:         1.8.1.1
 Cabal-Version:   >= 1.6
 Build-Type:      Custom
 License:         GPL
diff --git a/src/markdown2pdf.hs b/src/markdown2pdf.hs
--- a/src/markdown2pdf.hs
+++ b/src/markdown2pdf.hs
@@ -137,13 +137,13 @@
 main :: IO ()
 main = bracket
   -- acquire resource
-  (do dir <- return "testtmp" -- TODO -- getTemporaryDirectory
+  (do dir <- getTemporaryDirectory
       let tmp = dir </> "pandoc"
       createDirectoryIfMissing True tmp
       return tmp)
 
   -- release resource
-  ( \tmp -> return () )-- TODO -- removeDirectoryRecursive tmp)
+  ( \tmp -> removeDirectoryRecursive tmp)
 
   -- run computation
   $ \tmp -> do
