File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
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 $
30
30
*/
31
31
32
32
#include <postgres.h>
@@ -79,7 +79,7 @@ encode(PG_FUNCTION_ARGS)
79
79
elog (FATAL , "pg_encode: overflow, encode estimate too small" );
80
80
81
81
PG_FREE_IF_COPY (arg , 0 );
82
- PG_FREE_IF_COPY (name , 0 );
82
+ PG_FREE_IF_COPY (name , 1 );
83
83
84
84
PG_RETURN_TEXT_P (res );
85
85
}
@@ -116,7 +116,7 @@ decode(PG_FUNCTION_ARGS)
116
116
elog (FATAL , "pg_decode: overflow, decode estimate too small" );
117
117
118
118
PG_FREE_IF_COPY (arg , 0 );
119
- PG_FREE_IF_COPY (name , 0 );
119
+ PG_FREE_IF_COPY (name , 1 );
120
120
121
121
PG_RETURN_TEXT_P (res );
122
122
}
Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
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 $
30
30
*/
31
31
32
32
#include <postgres.h>
@@ -80,7 +80,7 @@ digest(PG_FUNCTION_ARGS)
80
80
h -> digest (h , VARDATA (arg ), len , VARDATA (res ));
81
81
82
82
PG_FREE_IF_COPY (arg , 0 );
83
- PG_FREE_IF_COPY (name , 0 );
83
+ PG_FREE_IF_COPY (name , 1 );
84
84
85
85
PG_RETURN_TEXT_P (res );
86
86
}
You can’t perform that action at this time.
0 commit comments