Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpuser dlclose() in error branch
details: https://anonhg.NetBSD.org/src/rev/2e651830eb54
branches: trunk
changeset: 747988:2e651830eb54
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Oct 08 00:34:54 2009 +0000
description:
dlclose() in error branch
diffstat:
sys/rump/librump/rumpuser/rumpuser_dl.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r a83e4f1a5d59 -r 2e651830eb54 sys/rump/librump/rumpuser/rumpuser_dl.c
--- a/sys/rump/librump/rumpuser/rumpuser_dl.c Wed Oct 07 22:22:18 2009 +0000
+++ b/sys/rump/librump/rumpuser/rumpuser_dl.c Thu Oct 08 00:34:54 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_dl.c,v 1.1 2009/09/24 21:30:42 pooka Exp $ */
+/* $NetBSD: rumpuser_dl.c,v 1.2 2009/10/08 00:34:54 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: rumpuser_dl.c,v 1.1 2009/09/24 21:30:42 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_dl.c,v 1.2 2009/10/08 00:34:54 pooka Exp $");
#include <sys/types.h>
#include <sys/time.h>
@@ -61,15 +61,16 @@
mi = dlsym(handle, "__start_link_set_modules");
if (!mi)
- return;
+ goto out;
mi_end = dlsym(handle, "__stop_link_set_modules");
if (!mi_end)
- return;
+ goto out;
for (; mi < mi_end; mi++)
rump_module_init(*mi, NULL);
assert(mi == mi_end);
+ out:
dlclose(handle);
}
Home |
Main Index |
Thread Index |
Old Index