From df496acbee49c5974f9ed42a92cca4a119315643 Mon Sep 17 00:00:00 2001 From: "mbuesch@freenet.de" Date: Wed, 24 Dec 2003 22:58:16 -0800 Subject: [PATCH] [PATCH] proper cleanup on udevdb_init() failure Seems like we need the following patch to do proper sysbus cleanup, if udevdb_init() fails. --- udev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/udev.c b/udev.c index ac29ec6f..71c5f1fb 100644 --- a/udev.c +++ b/udev.c @@ -119,7 +119,7 @@ int main(int argc, char **argv, char **envp) retval = udevdb_init(UDEVDB_DEFAULT); if (retval != 0) { dbg("unable to initialize database"); - goto exit; + goto exit_sysbus; } /* initialize the naming deamon */ @@ -137,6 +137,7 @@ int main(int argc, char **argv, char **envp) } udevdb_exit(); +exit_sysbus: /* disconnect from the system message bus */ sysbus_disconnect(); -- 2.39.5