From: Bruce Momjian Date: Tue, 6 Feb 2001 18:05:13 +0000 (+0000) Subject: Well, learned the hard way... X-Git-Tag: REL7_1~565 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=659a1d65c6349441f3ca1cd306b552be7de1e6dd;p=postgresql Well, learned the hard way... Marko Kreen --- diff --git a/contrib/pgcrypto/encode.c b/contrib/pgcrypto/encode.c index e7e19317b0..8875c41cdf 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 @@ -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); } diff --git a/contrib/pgcrypto/pgcrypto.c b/contrib/pgcrypto/pgcrypto.c index 397f5d9896..cfd7237494 100644 --- a/contrib/pgcrypto/pgcrypto.c +++ b/contrib/pgcrypto/pgcrypto.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pgcrypto.c,v 1.4 2001/01/24 03:46:16 momjian Exp $ + * $Id: pgcrypto.c,v 1.5 2001/02/06 18:05:13 momjian Exp $ */ #include @@ -80,7 +80,7 @@ digest(PG_FUNCTION_ARGS) h->digest(h, VARDATA(arg), len, VARDATA(res)); PG_FREE_IF_COPY(arg, 0); - PG_FREE_IF_COPY(name, 0); + PG_FREE_IF_COPY(name, 1); PG_RETURN_TEXT_P(res); }