Commit a7970e24 authored by unknown's avatar unknown
Browse files

Bug #26825 MySQL Server Crashes in high load

  - initialize to NULL, to avoid call of free on uninitialized variable

parent e2e6aa89
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6063,7 +6063,7 @@ int ndbcluster_discover(handlerton *hton, THD* thd, const char *db,
  int error= 0;
  NdbError ndb_error;
  uint len;
  const void* data;
  const void* data= NULL;
  Ndb* ndb;
  char key[FN_REFLEN];
  DBUG_ENTER("ndbcluster_discover");
@@ -6131,6 +6131,7 @@ int ndbcluster_discover(handlerton *hton, THD* thd, const char *db,

  DBUG_RETURN(0);
err:
  my_free((char*)data, MYF(MY_ALLOW_ZERO_PTR));
  if (share)
    free_share(&share);
  if (ndb_error.code)