[Curl] Memory leak.
authorpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 17:28:47 +0000 (17:28 +0000)
committerpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 17:28:47 +0000 (17:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=144327

Reviewed by Brent Fulgham.

When a data url is loaded, the ResourceHandle is not released.

* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::ResourceHandleManager::startJob):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183485 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/network/curl/ResourceHandleManager.cpp

index 80bffee..fd82330 100644 (file)
@@ -1,3 +1,15 @@
+2015-04-28  Per Arne Vollan  <peavo@outlook.com>
+
+        [Curl] Memory leak.
+        https://bugs.webkit.org/show_bug.cgi?id=144327
+
+        Reviewed by Brent Fulgham.
+
+        When a data url is loaded, the ResourceHandle is not released.
+
+        * platform/network/curl/ResourceHandleManager.cpp:
+        (WebCore::ResourceHandleManager::startJob):
+
 2015-04-28  Andy Estes  <aestes@apple.com>
 
         Fix the Mavericks Debug build after r183467.
index a2aece2..9dd105d 100644 (file)
@@ -953,10 +953,11 @@ void ResourceHandleManager::dispatchSynchronousJob(ResourceHandle* job)
 
 void ResourceHandleManager::startJob(ResourceHandle* job)
 {
-    URL kurl = job->firstRequest().url();
+    URL url = job->firstRequest().url();
 
-    if (kurl.protocolIsData()) {
+    if (url.protocolIsData()) {
         handleDataURL(job);
+        job->deref();
         return;
     }