Commits

hani  committed 27ed642

Patch from WF-469

  • Participants
  • Parent commits f3b1577

Comments (0)

Files changed (1)

File src/java/com/opensymphony/workflow/config/DefaultConfiguration.java

  * rather than in the calling client.
  *
  * @author Hani Suleiman
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
  */
 public class DefaultConfiguration implements Configuration, Serializable {
     //~ Static fields/initializers /////////////////////////////////////////////
                     throw ex;
                 } catch (Exception ex) {
                     throw new FactoryException("Error creating workflow factory " + clazz, ex);
+                } finally {
+                    if (is != null) {
+                        is.close();
+                    }
                 }
             }
 
             throw e;
         } catch (Exception e) {
             throw new FactoryException("Error in workflow config", e);
+        } finally {
+            try {
+                if (is != null) {
+                    is.close();
+                }
+            } catch (Exception e) {
+                throw new FactoryException("Error in workflow config", e);
+            }
         }
     }