summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/encode.c
diff options
context:
space:
mode:
authorBruce Momjian2001-02-06 18:05:13 +0000
committerBruce Momjian2001-02-06 18:05:13 +0000
commit659a1d65c6349441f3ca1cd306b552be7de1e6dd (patch)
tree90d0bcb8e4b5cdfc3826bcb359871bc2e4c22901 /contrib/pgcrypto/encode.c
parentd3aa6647988ffa48c6afca93cff6e1e1fa427420 (diff)
Well, learned the hard way...
Marko Kreen
Diffstat (limited to 'contrib/pgcrypto/encode.c')
-rw-r--r--contrib/pgcrypto/encode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/pgcrypto/encode.c b/contrib/pgcrypto/encode.c
index e7e19317b05..8875c41cdf6 100644
--- a/contrib/pgcrypto/encode.c
+++ b/contrib/pgcrypto/encode.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: encode.c,v 1.1 2001/01/24 03:46:16 momjian Exp $
+ * $Id: encode.c,v 1.2 2001/02/06 18:05:13 momjian Exp $
*/
#include <postgres.h>
@@ -79,7 +79,7 @@ encode(PG_FUNCTION_ARGS)
elog(FATAL, "pg_encode: overflow, encode estimate too small");
PG_FREE_IF_COPY(arg, 0);
- PG_FREE_IF_COPY(name, 0);
+ PG_FREE_IF_COPY(name, 1);
PG_RETURN_TEXT_P(res);
}
@@ -116,7 +116,7 @@ decode(PG_FUNCTION_ARGS)
elog(FATAL, "pg_decode: overflow, decode estimate too small");
PG_FREE_IF_COPY(arg, 0);
- PG_FREE_IF_COPY(name, 0);
+ PG_FREE_IF_COPY(name, 1);
PG_RETURN_TEXT_P(res);
}