Skip to content

Commit

Permalink
Changed the functioncall of free(..) to osp_credential_free(..)
Browse files Browse the repository at this point in the history
in manage.c: Changed the call of free(osp_credential) to
  osp_credential_free(osp_credential) in function
  target_osp_ssh_credential(..).
  • Loading branch information
jhelmold committed Jun 1, 2021
1 parent 9700639 commit c9e5d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2135,15 +2135,15 @@ target_osp_ssh_credential (target_t target)
{
g_warning ("%s: SSH Elevate Credential not found.", __func__);
cleanup_iterator (&ssh_elevate_iter);
free(osp_credential);
osp_credential_free(osp_credential);
return NULL;
}
elevate_type = credential_iterator_type (&ssh_elevate_iter);
if (strcmp (elevate_type, "up"))
{
g_warning ("%s: SSH Elevate Credential not of type up", __func__);
cleanup_iterator (&ssh_elevate_iter);
free(osp_credential);
osp_credential_free(osp_credential);
return NULL;
}
osp_credential_set_auth_data (osp_credential,
Expand Down

0 comments on commit c9e5d28

Please sign in to comment.