• Ramil Kalimullin's avatar
    Fix for bug#40875: Memory leak in FEDERATED handler · 1cd8b9f7
    Ramil Kalimullin authored
    Problem: memory leak occurs when we open a federated table
    that has its share in the hash.
    
    Fix: free not used memory.
    
    Note: the fix should NOT be merged to 5.1 (the code changed).
    
    
    sql/ha_federated.cc:
      Fix for bug#40875: Memory leak in FEDERATED handler
        - free memory (tmp_share.scheme) allocated in the parse_url()
      if it isn't used anymore.
    1cd8b9f7
ha_federated.cc 87.2 KB