diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2011-12-10 22:19:41 -0200 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2011-12-11 20:58:22 -0200 |
commit | 72c51a9e4d6b56f5454e53a6fc9b5c1bd923f227 (patch) | |
tree | ae6b81fe0552d86f32d553a9ca97175720c5531d /test | |
parent | d01c67e38334ca5aa62e6c645e416d4989696294 (diff) | |
download | kmod-72c51a9e4d6b56f5454e53a6fc9b5c1bd923f227.tar.gz |
add lsmod, insmod and rmmod tools.
these tools are compatible with module-init-tools (except insmod does
not take data from stdin).
Diffstat (limited to 'test')
-rw-r--r-- | test/test-loaded.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-loaded.c b/test/test-loaded.c index c862cd9..dc45695 100644 --- a/test/test-loaded.c +++ b/test/test-loaded.c @@ -23,6 +23,7 @@ int main(int argc, char *argv[]) err = kmod_loaded_get_list(ctx, &list); if (err < 0) { fprintf(stderr, "%s\n", strerror(-err)); + kmod_unref(ctx); exit(EXIT_FAILURE); } |