Labels: Type-Defect Priority-Medium
New issue 661 by wbenf...@gmail.com: Python: memory leak in
What steps will reproduce the problem?
descriptor = google.protobuf.descriptor_pb2.DescriptorProto.DESCRIPTOR
What is the expected output? What do you see instead?
Expected: infinite loop with constant memory usage
Observed: infinite loop with rapidly growing memory usage
What version of the product are you using? On what operating system?
Scientific Linux 6.5 (x86_64)
Please provide any additional information below.
The code above is a minimal standalone example (I don't really want to
construct an endless series of DescriptorProto objects). In reality I'm
calling ParseMessage with a descriptor which was read from the input
stream, but the outcome is the same: memory usage grows linearly with the
number of messages parsed.
I can't find anything in the documentation to suggest that ParseMessage
requires the user to take special action to release resources.
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
You received this message because you are subscribed to the Google Groups "Protocol
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.