fix: missing closedir in plugin.c

This commit is contained in:
Michael Schmoock 2019-03-05 22:49:00 +01:00 committed by Rusty Russell
parent afcbadf374
commit 6f71564bdd
1 changed files with 1 additions and 0 deletions

View File

@ -887,6 +887,7 @@ char *add_plugin_dir(struct plugins *plugins, const char *dir, bool nonexist_ok)
if (fullpath)
plugin_register(plugins, take(fullpath));
}
closedir(d);
return NULL;
}