Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit659a1d6

Browse files
committed
Well, learned the hard way...
Marko Kreen
1 parentd3aa664 commit659a1d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎contrib/pgcrypto/encode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $Id: encode.c,v 1.1 2001/01/24 03:46:16 momjian Exp $
29+
* $Id: encode.c,v 1.2 2001/02/06 18:05:13 momjian Exp $
3030
*/
3131

3232
#include<postgres.h>
@@ -79,7 +79,7 @@ encode(PG_FUNCTION_ARGS)
7979
elog(FATAL,"pg_encode: overflow, encode estimate too small");
8080

8181
PG_FREE_IF_COPY(arg,0);
82-
PG_FREE_IF_COPY(name,0);
82+
PG_FREE_IF_COPY(name,1);
8383

8484
PG_RETURN_TEXT_P(res);
8585
}
@@ -116,7 +116,7 @@ decode(PG_FUNCTION_ARGS)
116116
elog(FATAL,"pg_decode: overflow, decode estimate too small");
117117

118118
PG_FREE_IF_COPY(arg,0);
119-
PG_FREE_IF_COPY(name,0);
119+
PG_FREE_IF_COPY(name,1);
120120

121121
PG_RETURN_TEXT_P(res);
122122
}

‎contrib/pgcrypto/pgcrypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $Id: pgcrypto.c,v 1.4 2001/01/24 03:46:16 momjian Exp $
29+
* $Id: pgcrypto.c,v 1.5 2001/02/06 18:05:13 momjian Exp $
3030
*/
3131

3232
#include<postgres.h>
@@ -80,7 +80,7 @@ digest(PG_FUNCTION_ARGS)
8080
h->digest(h,VARDATA(arg),len,VARDATA(res));
8181

8282
PG_FREE_IF_COPY(arg,0);
83-
PG_FREE_IF_COPY(name,0);
83+
PG_FREE_IF_COPY(name,1);
8484

8585
PG_RETURN_TEXT_P(res);
8686
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp