summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index 95a383e0f01..3ad75885ff7 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -719,6 +719,7 @@ static bool make_empty_rec(THD *thd, File file,enum db_type table_type,
{
my_error(ER_INVALID_DEFAULT, MYF(0), regfield->field_name);
error= 1;
+ delete regfield; //To avoid memory leak
goto err;
}
}