Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-08-19 01:46:28 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-08-19 03:23:18 +0300
commit57af0b928ec8dd12c443c9479973ad3e39f258b4 (patch)
tree895632779547a976f068d90e04b414a15f283000 /src
parent47ed7e5acd5fe9fd8dfc1a6b9aac7603a50da25c (diff)
cred: add a free function wrapper
Diffstat (limited to 'src')
-rw-r--r--src/transports/cred.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transports/cred.c b/src/transports/cred.c
index 044b2a262..49ede48bf 100644
--- a/src/transports/cred.c
+++ b/src/transports/cred.c
@@ -378,3 +378,11 @@ int git_cred_username_new(git_cred **cred, const char *username)
*cred = (git_cred *) c;
return 0;
}
+
+void git_cred_free(git_cred *cred)
+{
+ if (!cred)
+ return;
+
+ cred->free(cred);
+}