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

Commit8ea91ba

Browse files
author
Neil Conway
committed
Minor code clarity improvement: AFAICS, estate.eval_econtext must be
non-NULL during the guts of plpgsql_exec_trigger() andplpgsql_exec_function(). Therefore, we can remove the NULL check,per discussion on -patches.
1 parentce8fd39 commit8ea91ba

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/pl/plpgsql/src/pl_exec.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* procedural language
44
*
55
* IDENTIFICATION
6-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.159 2006/01/03 22:48:10 tgl Exp $
6+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.160 2006/01/10 18:50:43 neilc Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -414,8 +414,7 @@ plpgsql_exec_function(PLpgSQL_function *func, FunctionCallInfo fcinfo)
414414
}
415415

416416
/* Clean up any leftover temporary memory */
417-
if (estate.eval_econtext!=NULL)
418-
FreeExprContext(estate.eval_econtext);
417+
FreeExprContext(estate.eval_econtext);
419418
estate.eval_econtext=NULL;
420419
exec_eval_cleanup(&estate);
421420

@@ -646,8 +645,7 @@ plpgsql_exec_trigger(PLpgSQL_function *func,
646645
}
647646

648647
/* Clean up any leftover temporary memory */
649-
if (estate.eval_econtext!=NULL)
650-
FreeExprContext(estate.eval_econtext);
648+
FreeExprContext(estate.eval_econtext);
651649
estate.eval_econtext=NULL;
652650
exec_eval_cleanup(&estate);
653651

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp