static char *correct_concat(char *str1, char *str2, bool next) {
char *ret = NULL;
+#if 0
if (!str1) {
str1 = mem_a(1);
*str1 = '\0';
}
+#endif
str1 = mem_r (str1, strlen(str1) + strlen(str2) + 1);
ret = strcat(str1, str2);
if (correct_find(table, end[jtr]) && !correct_exist(res, len, end[jtr])) {
res = mem_r(res, sizeof(char*) * (len + 1));
res[len++] = end[jtr];
+ } else {
+ mem_d(end[jtr]);
}
}
size_t itr;
for (itr = 0; itr < rows; itr++)
mem_d(array[itr]);
+
+ mem_d(array);
}
/*
if ((e1ident = correct_maximum(table, e1, e1rows))) {
found = util_strdup(e1ident);
correct_cleanup(e1, e1rows);
- mem_d(e1);
return found;
}
}
correct_cleanup(e1, e1rows);
correct_cleanup(e2, e2rows);
-
- mem_d(e1);
- mem_d(e2);
return found;
}