Fix for memory leak.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 May 1999 12:40:08 +0000 (12:40 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 May 1999 12:40:08 +0000 (12:40 +0000)
crypto/conf/conf.c

index 177e76a..a55ecbb 100644 (file)
@@ -358,7 +358,7 @@ char *CONF_get_string(LHASH *conf, char *section, char *name)
                                if (p != NULL) return(p);
                                }
                        }
                                if (p != NULL) return(p);
                                }
                        }
-               vv.section=BUF_strdup("default");
+               vv.section="default";
                vv.name=name;
                v=(CONF_VALUE *)lh_retrieve(conf,(char *)&vv);
                if (v != NULL)
                vv.name=name;
                v=(CONF_VALUE *)lh_retrieve(conf,(char *)&vv);
                if (v != NULL)