From 02d78e66ef49eeb9cb4b6f8a3bd4694d964deeae Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 16 Apr 2010 15:36:31 +0000 Subject: [PATCH] 3798: Narrative Web Report error 'Too many open files: ...' svn: r15163 --- src/ImgManip.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImgManip.py b/src/ImgManip.py index 2f8f4a4cc..6898831ec 100644 --- a/src/ImgManip.py +++ b/src/ImgManip.py @@ -110,6 +110,7 @@ def resize_to_jpeg_buffer(source, width, height): filed, dest = tempfile.mkstemp() img = gtk.gdk.pixbuf_new_from_file(source) scaled = img.scale_simple(int(width), int(height), gtk.gdk.INTERP_BILINEAR) + os.close(filed) scaled.save(dest, 'jpeg') ofile = open(dest, mode='rb') data = ofile.read()