Make sure applications free up pkey structures and add netscape extension
[openssl.git] / crypto / objects / obj_lib.c
index 35a8d70e09ddf59e2222c212407621b6c2a32519..16ff85209537407838720d56a66c77aaf6628a9f 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/objects/obj_lib.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -101,7 +101,7 @@ ASN1_OBJECT *o;
                memcpy(r->sn,o->sn,i);
                }
        r->flags=o->flags|(ASN1_OBJECT_FLAG_DYNAMIC|
-               ASN1_OBJECT_FLAG_DYNAMIC_STRINGS);
+               ASN1_OBJECT_FLAG_DYNAMIC_STRINGS|ASN1_OBJECT_FLAG_DYNAMIC_DATA);
        return(r);
 err:
        OBJerr(OBJ_F_OBJ_DUP,ERR_R_MALLOC_FAILURE);