Bugs: Browse | Submit New | Admin

[#29613] ole_free leak

Date:
2012-07-12 22:52
Priority:
3
Submitted By:
Roger Pack (rogerdpack)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
ole_free leak

Detailed description
Hello.
Since 

[52, 61] in c:/installs/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb
   52            when /Invalid class/i ; raise InvalidClass
   53            when /Invalid query/i ; raise InvalidQuery
   54
   55            end
   56          end
=> 57          d.to_a


it appears that when doing a find_all, it converts it into an array, and returns (just) the array, disallowing the user
to call ole_free on the original object.  This can cause serious problems in for instance jruby


http://jira.codehaus.org/browse/JRUBY-6220

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item