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:
@@ -353,7 +353,7 @@ krb5_copy_context(krb5_context context, krb5_context *out)
|
|||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
p->mutex = malloc(sizeof(p->mutex));
|
p->mutex = malloc(sizeof(*p->mutex));
|
||||||
if (p->mutex == NULL) {
|
if (p->mutex == NULL) {
|
||||||
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||||
free(p);
|
free(p);
|
||||||
|
Reference in New Issue
Block a user