Bug 9418

Summary: Missing delete after reading a bad thumb colormap
Product: poppler Reporter: Scott Turner <scotty1024>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Scott Turner 2006-12-21 12:38:35 UTC
--- poppler-0.5.4/poppler/Page.cc       2006-04-11 18:58:54.000000000 -0700
+++ poppler/poppler/Page.cc     2006-12-21 12:29:49.000000000 -0800
@@ -484,6 +481,7 @@
   obj1.free();
   if (!colorMap->isOk()) {
     fprintf (stderr, "Error: invalid colormap\n");
+    delete colorMap;
     goto fail1;
   }
Comment 1 Albert Astals Cid 2006-12-22 15:38:02 UTC
Fixed, thanks for the patch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.