Signed-off-by: Jean-Christophe DUBOIS <j...@tribudubois.net>
---
 src/core/shared_secure_surface_pool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/shared_secure_surface_pool.c 
b/src/core/shared_secure_surface_pool.c
index 018104b..4b68963 100644
--- a/src/core/shared_secure_surface_pool.c
+++ b/src/core/shared_secure_surface_pool.c
@@ -220,6 +220,7 @@ sharedSecureAllocateBuffer( CoreSurfacePool       *pool,
 
      if (ftruncate( fd, alloc->size ) < 0) {
           D_PERROR( "Core/Surface/SHM: Setting file size for '%s' to %d 
failed!\n", buf, alloc->size );
+          close( fd );
           unlink( buf );
           return DFB_IO;
      }
-- 
1.9.1

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to