Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 710526 Details for
Bug 921138
ksh memory leak when using arrays in functions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to fix this
ksh-20120801-memleak.patch (text/plain), 1.00 KB, created by
Michal Hlavinka
on 2013-03-15 09:22:57 UTC
(
hide
)
Description:
patch to fix this
Filename:
MIME Type:
Creator:
Michal Hlavinka
Created:
2013-03-15 09:22:57 UTC
Size:
1.00 KB
patch
obsolete
>diff -up ksh-20100621/src/cmd/ksh93/sh/array.c.memleak ksh-20100621/src/cmd/ksh93/sh/array.c >--- ksh-20100621/src/cmd/ksh93/sh/array.c.memleak 2010-05-24 20:27:05.000000000 +0200 >+++ ksh-20100621/src/cmd/ksh93/sh/array.c 2013-03-15 10:17:07.481029466 +0100 >@@ -1218,7 +1218,11 @@ void *nv_associative(register Namval_t * > ap->header.scope = 0; > } > else >+ { >+ if(ap->cur=nv_search("0",ap->header.table,0)) >+ nv_associative(np,(char*)0,NV_ADELETE); > dtclose(ap->header.table); >+ } > return((void*)ap); > case NV_ANEXT: > if(!ap->pos) >diff -up ksh-20100621/src/cmd/ksh93/sh/name.c.memleak ksh-20100621/src/cmd/ksh93/sh/name.c >--- ksh-20100621/src/cmd/ksh93/sh/name.c.memleak 2013-03-15 10:17:07.000000000 +0100 >+++ ksh-20100621/src/cmd/ksh93/sh/name.c 2013-03-15 10:21:08.213967241 +0100 >@@ -2177,6 +2177,8 @@ static void table_unset(Shell_t *shp, re > nv_delete(nq,root,0); > } > } >+ if(nv_arrayptr(np)) >+ nv_putsub(np,NIL(char*),0,ARRAY_SCAN); > _nv_unset(np,flags); > nv_delete(np,root,0); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 921138
:
710526
|
767425
|
767886