diff --git a/lib/drizzlepac/astrodrizzle.py b/lib/drizzlepac/astrodrizzle.py
index <HASH>..<HASH> 100644
--- a/lib/drizzlepac/astrodrizzle.py
+++ b/lib/drizzlepac/astrodrizzle.py
@@ -250,8 +250,8 @@ def run(configobj, wcsmap=None):
                 image.clean()
             image.close()
 
-            del imgObjList
-            del outwcs
+        del imgObjList
+        del outwcs
 
 
 def help(file=None):
Fixed a bug in astrodrizzle that affects clean up after a successful run.  


git-svn-id: <URL>