From: compudj Date: Mon, 26 Jul 2004 19:50:12 +0000 (+0000) Subject: library unload minor bugfix X-Git-Tag: v0.12.20~2855 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=145c158877f87346395c76181529f709e146acc2;p=lttv.git library unload minor bugfix git-svn-id: http://ltt.polymtl.ca/svn@634 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/module.c b/ltt/branches/poly/lttv/lttv/module.c index 3ebd3a33..c2cc8fac 100644 --- a/ltt/branches/poly/lttv/lttv/module.c +++ b/ltt/branches/poly/lttv/lttv/module.c @@ -277,7 +277,9 @@ static void library_unload(LttvLibrary *l) void lttv_library_unload(LttvLibrary *l) { - l->info.load_count--; + /* In the case where we wait for a module to release, the load count is 0 + * and should not be decremented. */ + if(l->info.load_count != 0) l->info.load_count--; library_unload(l); }