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(..).

(cherry picked from commit c9e5d28)
  • Loading branch information
jhelmold authored and mergify-bot committed Jun 2, 2021
1 parent aabb751 commit 56b10f3
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 @@ -2145,15 +2145,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 56b10f3

Please sign in to comment.