File tree 1 file changed +7
-21
lines changed
1 file changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -983,9 +983,7 @@ PHP_FUNCTION(grapheme_levenshtein)
983
983
intl_error_set_code (NULL , ustatus1 );
984
984
985
985
intl_error_set_custom_msg (NULL , "Error converting input string to UTF-16" , 0 );
986
- if (ustring1 ) {
987
- efree (ustring1 );
988
- }
986
+ efree (ustring1 );
989
987
RETURN_FALSE ;
990
988
}
991
989
@@ -995,12 +993,8 @@ PHP_FUNCTION(grapheme_levenshtein)
995
993
intl_error_set_code (NULL , ustatus2 );
996
994
997
995
intl_error_set_custom_msg (NULL , "Error converting input string to UTF-16" , 0 );
998
- if (ustring2 ) {
999
- efree (ustring2 );
1000
- }
1001
- if (ustring1 ) {
1002
- efree (ustring1 );
1003
- }
996
+ efree (ustring2 );
997
+ efree (ustring1 );
1004
998
RETURN_FALSE ;
1005
999
}
1006
1000
@@ -1032,12 +1026,8 @@ PHP_FUNCTION(grapheme_levenshtein)
1032
1026
intl_error_set_code (NULL , ustatus1 );
1033
1027
1034
1028
intl_error_set_custom_msg (NULL , "Error on ubrk_setText on ustring1" , 0 );
1035
- if (ustring2 ) {
1036
- efree (ustring2 );
1037
- }
1038
- if (ustring1 ) {
1039
- efree (ustring1 );
1040
- }
1029
+ efree (ustring2 );
1030
+ efree (ustring1 );
1041
1031
RETURN_FALSE ;
1042
1032
}
1043
1033
@@ -1046,12 +1036,8 @@ PHP_FUNCTION(grapheme_levenshtein)
1046
1036
intl_error_set_code (NULL , ustatus2 );
1047
1037
1048
1038
intl_error_set_custom_msg (NULL , "Error on ubrk_setText on ustring2" , 0 );
1049
- if (ustring2 ) {
1050
- efree (ustring2 );
1051
- }
1052
- if (ustring1 ) {
1053
- efree (ustring1 );
1054
- }
1039
+ efree (ustring2 );
1040
+ efree (ustring1 );
1055
1041
RETURN_FALSE ;
1056
1042
}
1057
1043
You can’t perform that action at this time.
0 commit comments