From: Theodore Tso Date: Wed, 21 Sep 1994 04:03:06 +0000 (+0000) Subject: Fix typo which was causing krb5_encode_test.c to fail due to trying to X-Git-Tag: krb5-1.0-beta4.3~104 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ad4b37c492deb14b5b585f043f7a72b1c544a5f;p=krb5.git Fix typo which was causing krb5_encode_test.c to fail due to trying to free the wrong thing. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4305 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/asn.1/ChangeLog b/src/tests/asn.1/ChangeLog new file mode 100644 index 000000000..4fb5e1191 --- /dev/null +++ b/src/tests/asn.1/ChangeLog @@ -0,0 +1,6 @@ +Tue Sep 20 23:53:13 1994 Theodore Y. Ts'o (tytso@dcl) + + * Fix typo in utility.c --- we should be freeing the pointer to + the passed in pointer, not the passed-in pointer itself. + + diff --git a/src/tests/asn.1/utility.c b/src/tests/asn.1/utility.c index a514820bc..17ed2243c 100644 --- a/src/tests/asn.1/utility.c +++ b/src/tests/asn.1/utility.c @@ -10,7 +10,7 @@ asn1_error_code asn1_krb5_data_unparse(DECLARG(const krb5_data *, code), OLDDECLARG(const krb5_data *, code) OLDDECLARG(char **, s) { - if(*s != NULL) free(s); + if(*s != NULL) free(*s); if(code==NULL){ *s = (char*)calloc(strlen("")+1, sizeof(char));