[ITC][base-utils][Non-ACR][TNEXT-1266: Fixed TC]
authorSushil Bhadula <s.bhadula@samsung.com>
Fri, 28 Jul 2017 05:23:15 +0000 (10:53 +0530)
committerSushil Bhadula <s.bhadula@samsung.com>
Fri, 28 Jul 2017 05:37:04 +0000 (11:07 +0530)
Signed-off-by: Sushil Bhadula <s.bhadula@samsung.com>
243c090fd5f8ef9a4167cc6431dd80ac1af14811

Change-Id: I9e83bef22008bf1dbfac8737de320a98dcb0df5e

src/itc/base-utils/ITs-base-utils-uset.c

index 4e9f5f0faca03bb9df26b11008e67fbc7c51fd4f..62976b9f3c6aa906b2020ad00ae7aed61693d092 100755 (executable)
@@ -196,16 +196,12 @@ int ITc_i18n_uset_create_pattern_options_p(void)
                //Target Api
                nRetVal = i18n_uset_create_pattern_options(_pattern, nSourceLength, BitmaskType[nEnumCounter], &uset);
                PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRetVal,"i18n_uset_create_pattern_options", BaseUtilsGetError(nRetVal), i18n_uset_destroy(uset);FREE_MEMORY1(_pattern));
-               FREE_MEMORY1(_pattern);
+               nRetVal = i18n_uset_destroy(uset);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRetVal,"i18n_uset_destroy", BaseUtilsGetError(nRetVal), FREE_MEMORY1(_pattern));
        }
-       
-       nRetVal = i18n_uset_destroy(uset);
-       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRetVal,"i18n_uset_destroy", BaseUtilsGetError(nRetVal), FREE_MEMORY1(_pattern));
-
        FREE_MEMORY1(_pattern);
-       
        return 0;
-}      
+}
 
 //& purpose: Returns a copy of this object.
 /**