(_kadm5_c_init_context): fix memory leak in case of failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15136 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -99,9 +99,9 @@ _kadm5_c_init_context(kadm5_client_context **ctx,
|
||||
}
|
||||
|
||||
if ((*ctx)->admin_server == NULL) {
|
||||
return ENOMEM;
|
||||
free((*ctx)->realm);
|
||||
free(*ctx);
|
||||
return ENOMEM;
|
||||
}
|
||||
colon = strchr ((*ctx)->admin_server, ':');
|
||||
if (colon != NULL)
|
||||
|
Reference in New Issue
Block a user