#1953: platform/generic/env.c incorrectly frees string passed to putenv()
----------------------+-----------------------------------------------------
 Reporter:  doughera  |       Owner:        
     Type:  bug       |      Status:  new   
 Priority:  normal    |   Milestone:        
Component:  none      |     Version:  2.11.0
 Severity:  medium    |    Keywords:        
     Lang:            |       Patch:        
 Platform:            |  
----------------------+-----------------------------------------------------
 Multiple tests in t/library/cgi_query_hash.t, t/op/gc.t,
 t/op/profiling/profiling.t, and t/pmc/env.t fail on a platform where
 putenv() is used because it frees the string {{{ envs }}} out from under
 the system.
 {{{
 Failed Test                Stat Wstat Total Fail  List of Failed
 -------------------------------------------------------------------------------
 t/library/cgi_query_hash.t                7    5  3-7
 t/op/gc.t                               139  101  11-111
 t/pmc/env.t                              16    7  2-3 6 9 15-17
 t/profiling/profiling.t       1   256    13   26  1-13
 }}}
 The attached patch fixes this and documents why the string isn't freed.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1953>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to