mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Well, learned the hard way...
Marko Kreen
This commit is contained in:
		@@ -26,7 +26,7 @@
 | 
				
			|||||||
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
					 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
				
			||||||
 * SUCH DAMAGE.
 | 
					 * 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>
 | 
					#include <postgres.h>
 | 
				
			||||||
@@ -79,7 +79,7 @@ encode(PG_FUNCTION_ARGS)
 | 
				
			|||||||
		elog(FATAL, "pg_encode: overflow, encode estimate too small");
 | 
							elog(FATAL, "pg_encode: overflow, encode estimate too small");
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	PG_FREE_IF_COPY(arg, 0);
 | 
						PG_FREE_IF_COPY(arg, 0);
 | 
				
			||||||
	PG_FREE_IF_COPY(name, 0);
 | 
						PG_FREE_IF_COPY(name, 1);
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	PG_RETURN_TEXT_P(res);
 | 
						PG_RETURN_TEXT_P(res);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -116,7 +116,7 @@ decode(PG_FUNCTION_ARGS)
 | 
				
			|||||||
		elog(FATAL, "pg_decode: overflow, decode estimate too small");
 | 
							elog(FATAL, "pg_decode: overflow, decode estimate too small");
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	PG_FREE_IF_COPY(arg, 0);
 | 
						PG_FREE_IF_COPY(arg, 0);
 | 
				
			||||||
	PG_FREE_IF_COPY(name, 0);
 | 
						PG_FREE_IF_COPY(name, 1);
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	PG_RETURN_TEXT_P(res);
 | 
						PG_RETURN_TEXT_P(res);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,7 +26,7 @@
 | 
				
			|||||||
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
					 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
				
			||||||
 * SUCH DAMAGE.
 | 
					 * 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 <postgres.h>
 | 
					#include <postgres.h>
 | 
				
			||||||
@@ -80,7 +80,7 @@ digest(PG_FUNCTION_ARGS)
 | 
				
			|||||||
	h->digest(h, VARDATA(arg), len, VARDATA(res));
 | 
						h->digest(h, VARDATA(arg), len, VARDATA(res));
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	PG_FREE_IF_COPY(arg, 0);
 | 
						PG_FREE_IF_COPY(arg, 0);
 | 
				
			||||||
	PG_FREE_IF_COPY(name, 0);
 | 
						PG_FREE_IF_COPY(name, 1);
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	PG_RETURN_TEXT_P(res);
 | 
						PG_RETURN_TEXT_P(res);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user