diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-12 17:11:13 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-12 17:37:58 +0200 |
commit | 0b44d8c3d7dfadb60b30c9339b18c4cc1617b51b (patch) | |
tree | 5e6207335195e8028da3976dad330c1a25e90aaa /src/libsystemd-network | |
parent | 7c8ec321e7b6fd97a6eb4b9a3daa16c51b97a74a (diff) |
networkd: manager - don't leak kmod context
Also, keep the kmod_new internal to networkd-manager.c
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/network-internal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c index cf577e54a4..f3dc42f6dd 100644 --- a/src/libsystemd-network/network-internal.c +++ b/src/libsystemd-network/network-internal.c @@ -353,6 +353,8 @@ int load_module(struct kmod_ctx *ctx, const char *mod_name) { log_error("Failed to insert '%s': %s", kmod_module_get_name(mod), strerror(-r)); } + + kmod_module_unref(mod); } kmod_module_unref_list(modlist); |