• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory leak in CFNetwork - gzipDecodeData?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak in CFNetwork - gzipDecodeData?


  • Subject: Re: Memory leak in CFNetwork - gzipDecodeData?
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 21 Jul 2010 17:09:51 +0200

On Jul 20, 2010, at 5:29 PM, Stéphane Sudre wrote:

Is there a known memory leak in the CFNetwork function gzipDecodeData()?

According to Activity Monitor and Instruments, I am losing close to 300 KB of RAM for each 8 MB download through http.

Specifically, the main memory leak is with a call to CFDataReplaceBytes > __CFDataGrow and there is a smaller one in __CFDataInit.

CFNetwork not being open source, it is not possible to check the source code.

A quick search on Google brings back only one occurrence, a crash in Safari due to a memory issue with gzipDecodeData.


I'm seeing this on Mac OS X 10.6.4, 64-bit process, Foundation tool (I don't think it's an autorelease issue as it's not some memory I own that is leaked).

OK, so there is a new memory leak in the networking APIs on Mac OS X 10.6.x :-(


The memory leak does not happen on Mac OS X 10.5.8.

I will file a bug report.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Memory leak in CFNetwork - gzipDecodeData?
      • From: Mark Pauley <email@hidden>
References: 
 >Memory leak in CFNetwork - gzipDecodeData? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Memory leak in CFNetwork - gzipDecodeData?
  • Next by Date: Re: Memory leak in CFNetwork - gzipDecodeData?
  • Previous by thread: Memory leak in CFNetwork - gzipDecodeData?
  • Next by thread: Re: Memory leak in CFNetwork - gzipDecodeData?
  • Index(es):
    • Date
    • Thread