summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dso.c1
1 files changed, 1 insertions, 0 deletions
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;
}