diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:59:28 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:59:28 +0000 |
commit | 54c2e843134660a26a8923517d09519ce884c422 (patch) | |
tree | d338e64c26d86c31821227b5e62daf1144fdd1f1 /expect-5.45-re-memleak.patch | |
parent | 620ca363f3f7629f6b720c849aeb7a66a3e05ea0 (diff) |
automatic import of expectopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'expect-5.45-re-memleak.patch')
-rw-r--r-- | expect-5.45-re-memleak.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/expect-5.45-re-memleak.patch b/expect-5.45-re-memleak.patch new file mode 100644 index 0000000..182f596 --- /dev/null +++ b/expect-5.45-re-memleak.patch @@ -0,0 +1,14 @@ +diff -up expect5.45/expect.c.orig expect5.45/expect.c +--- expect5.45/expect.c.orig 2013-10-02 13:16:31.462430482 +0200 ++++ expect5.45/expect.c 2013-10-02 13:17:18.420599495 +0200 +@@ -185,9 +185,9 @@ free_ecase( + { + if (ec->i_list->duration == EXP_PERMANENT) { + if (ec->pat) { Tcl_DecrRefCount(ec->pat); } +- if (ec->gate) { Tcl_DecrRefCount(ec->gate); } + if (ec->body) { Tcl_DecrRefCount(ec->body); } + } ++ if (ec->gate) { Tcl_DecrRefCount(ec->gate); } + + if (free_ilist) { + ec->i_list->ecount--; |