|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
imcc_init unneeded calls leaks memory
Wednesday 02 July 2008 12:56:56 NotFound wrote:
The imcc_init function is called from several places, and it allocates memory without checking if already is initialized, with potential memory leaking. > However, it's called during interpreter creation. And putting the assertion: > PARRT_ASSERT(IMCC_INF(interp) == NULL); > confirms that is called several tiems, breaking a lot of tests. > Worse, the function lacks a prototype in an easily available header. > This patch cleans the isuue by dropping all calls from all places except interpreter creation, and puts the assertion in place to verify that is not recalled, avoiding memory leaks. Thanks, applied in r28973. -- c |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Perl > imcc_init unneeded calls leaks memory |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|