diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-01-31 15:28:50 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-01-31 15:28:50 -0500 |
commit | eb165d80ac5fa8e9c19e50671de6e0c1173fe5e8 (patch) | |
tree | 51b1935e4a473df79627ff6088a3e30b08fe60e8 /src/postgres.sml | |
parent | 43566cdd19751c5f308b451ee99aeecc57b5f0b3 (diff) |
A litter more cautious about NULL applications; plug a memory leak in some Postgres functions
Diffstat (limited to 'src/postgres.sml')
-rw-r--r-- | src/postgres.sml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/postgres.sml b/src/postgres.sml index 59fa3330..a3f33db1 100644 --- a/src/postgres.sml +++ b/src/postgres.sml @@ -411,6 +411,8 @@ fun init {dbstring, prepared = ss, tables, views, sequences} = newline], string "}", newline, + string "PQclear(res);", + newline, string "return 0;", newline, string "}", @@ -434,6 +436,8 @@ fun init {dbstring, prepared = ss, tables, views, sequences} = newline], string "}", newline, + string "PQclear(res);", + newline, string "return 0;", newline, string "}", @@ -457,6 +461,8 @@ fun init {dbstring, prepared = ss, tables, views, sequences} = newline], string "}", newline, + string "PQclear(res);", + newline, string "return 0;", newline, string "}", |