Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 8016)
+++ trunk/ippTools/src/regtool.c	(revision 8018)
@@ -95,4 +95,5 @@
                 if (!frame) {
                     psError(PS_ERR_UNKNOWN, false, "failed to convert new frame into a detrend frame");
+                    psFree(new);
                     return false;
                 }
@@ -109,4 +110,5 @@
                 if (!frame) {
                     psError(PS_ERR_UNKNOWN, false, "failed to convert new frame into a science frame");
+                    psFree(new);
                     return false;
                 }
