Commit b1170bc0 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

Revert "ITS#9160 OOM handling in mdb tools", wrong branch.

This reverts commit be61a967.
parent 47e0e3fd
......@@ -279,10 +279,6 @@ int main(int argc, char *argv[])
continue;
count++;
str = malloc(key.mv_size+1);
if (!str) {
fprintf(stderr, "malloc failed\n");
goto txn_abort;
}
memcpy(str, key.mv_data, key.mv_size);
str[key.mv_size] = '\0';
rc = mdb_open(txn, str, 0, &db2);
......
......@@ -232,10 +232,6 @@ int main(int argc, char *argv[])
if (memchr(key.mv_data, '\0', key.mv_size))
continue;
str = malloc(key.mv_size+1);
if (!str) {
fprintf(stderr, "malloc failed\n");
goto txn_abort;
}
memcpy(str, key.mv_data, key.mv_size);
str[key.mv_size] = '\0';
rc = mdb_open(txn, str, 0, &db2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment