--- conf_mod.c.orig	2016-03-08 18:05:52.017031376 -0800
+++ conf_mod.c	2016-03-08 18:08:22.865203402 -0800
@@ -284,6 +284,10 @@
 
     tmod->dso = dso;
     tmod->name = OPENSSL_strdup(name);
+    if (tmod->name == NULL) {
+	OPENSSL_free(tmod);
+	return NULL;
+    }
     tmod->init = ifunc;
     tmod->finish = ffunc;
 
