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

Commite72489e

Browse files
author
Michael Meskes
committed
Fix small memory leak in ecpglib ecpg_update_declare_statement() is called the
second time.Author: "Zhang, Jie" <zhangjie2@cn.fujitsu.com>
1 parent8372e3c commite72489e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/interfaces/ecpg/ecpglib/prepare.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,11 @@ ecpg_update_declare_statement(const char *declared_name, const char *cursor_name
754754
/* Find the declared node by declared name */
755755
p=ecpg_find_declared_statement(declared_name);
756756
if (p)
757+
{
758+
if (p->cursor_name)
759+
ecpg_free(p->cursor_name);
757760
p->cursor_name=ecpg_strdup(cursor_name,lineno);
761+
}
758762
}
759763

760764
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp