allocate the right size

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23933 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-10-18 21:17:47 +00:00
parent d697ba5f85
commit 5a7596fd02

View File

@@ -353,7 +353,7 @@ krb5_copy_context(krb5_context context, krb5_context *out)
return ENOMEM;
}
p->mutex = malloc(sizeof(p->mutex));
p->mutex = malloc(sizeof(*p->mutex));
if (p->mutex == NULL) {
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
free(p);