diff options
Diffstat (limited to 'libglusterfs/src/graph.c')
| -rw-r--r-- | libglusterfs/src/graph.c | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index aea74a5edad..0b99e618191 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -1200,6 +1200,14 @@ glusterfs_graph_fini(glusterfs_graph_t *graph)          if (trav->init_succeeded) {              trav->cleanup_starting = 1;              trav->fini(trav); +            if (trav->local_pool) { +                mem_pool_destroy(trav->local_pool); +                trav->local_pool = NULL; +            } +            if (trav->itable) { +                inode_table_destroy(trav->itable); +                trav->itable = NULL; +            }              trav->init_succeeded = 0;          }          trav = trav->next; @@ -1401,7 +1409,7 @@ glusterfs_graph_cleanup(void *arg)      pthread_mutex_lock(&ctx->cleanup_lock);      { -        glusterfs_graph_deactivate(graph); +        glusterfs_graph_fini(graph);          glusterfs_graph_destroy(graph);      }      pthread_mutex_unlock(&ctx->cleanup_lock);  | 
