dlm: fix missing idr_destroy for recover_idr
authorDavid Teigland <teigland@redhat.com>
Thu, 15 Nov 2018 17:17:40 +0000 (11:17 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 15 Nov 2018 17:21:21 +0000 (11:21 -0600)
Which would leak memory for the idr internals.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lockspace.c

index 3f992ef..a0584bc 100644 (file)
@@ -807,6 +807,7 @@ static int release_lockspace(struct dlm_ls *ls, int force)
 
        dlm_delete_debug_file(ls);
 
+       idr_destroy(&ls->ls_recover_idr);
        kfree(ls->ls_recover_buf);
 
        /*