Overview
| Artifact ID: | 35bfa68e397e209171d4a1aaae49176f83bbabdc35715acff3191c5569bab332 |
|---|---|
| Ticket: | 46442d45efc02ebf03e3054227210fbc54a3da2c
memleak in dict implementation, AllocChainEntry |
| User & Date: | dkf on 2023-11-27 16:59:08 |
Changes
- icomment:
Is this leaked by `AllocChainEntry` or by `TclMergeReturnOptions` or what? `AllocChainEntry` is just making an entry in the hashtable, and is little more than a wrapper around `Tcl_Alloc`. It (effectively) returns a pointer to the memory it allocates; as such, it cannot leak itself. This instead looks to be a leak further up the stack, probably in `TclMergeReturnOptions`, `Tcl_SetReturnOptions` or (hopefully not) `TEBCresume`. Or maybe those are all bystanders and these are just the places where things are correctly allocated, and the problem is the absence of a `Tcl_DecrRefCount` elsewhere? (That's what I really suspect is the problem, FWIW.) A smaller example that can reproduce this would help...
- login: "dkf"
- mimetype: "text/x-markdown"