From d3f2ffc559ff19ee542a11d53da4c6dc636843e9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 26 Oct 2008 02:51:45 +0200 Subject: don't call the driver's destroy function when initialization failed --- src/dso.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dso.c') diff --git a/src/dso.c b/src/dso.c index ec9472d..c42eff2 100644 --- a/src/dso.c +++ b/src/dso.c @@ -264,6 +264,7 @@ int driver_open(ca_context *c) { ca_free(driver); if ((ret = p->driver_open(c)) < 0) { + p->driver_destroy = NULL; driver_destroy(c); return ret; } -- cgit v1.2.1