diff src/postgres.sml @ 1144:bafb6a5a52a9

A litter more cautious about NULL applications; plug a memory leak in some Postgres functions
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Jan 2010 15:28:50 -0500
parents db52c32dbe42
children 134da5110bf7
line wrap: on
line diff
--- a/src/postgres.sml	Sun Jan 31 07:44:49 2010 -0500
+++ b/src/postgres.sml	Sun Jan 31 15:28:50 2010 -0500
@@ -411,6 +411,8 @@
               newline],
          string "}",
          newline,
+         string "PQclear(res);",
+         newline,
          string "return 0;",
          newline,
          string "}",
@@ -434,6 +436,8 @@
               newline],
          string "}",
          newline,
+         string "PQclear(res);",
+         newline,
          string "return 0;",
          newline,
          string "}",
@@ -457,6 +461,8 @@
               newline],
          string "}",
          newline,
+         string "PQclear(res);",
+         newline,
          string "return 0;",
          newline,
          string "}",