summaryrefslogtreecommitdiff
path: root/src/transports/git.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-02-04 13:52:18 -0800
committerBen Straub <bs@github.com>2013-02-04 13:52:18 -0800
commit630146bd1b71cbb450f1fe658048ca8e25479105 (patch)
tree98bab53dee0d691866dab6e6b465577930fe3d04 /src/transports/git.c
parent15760c598d57233820a68d2721643c637207a18e (diff)
downloadlibgit2-630146bd1b71cbb450f1fe658048ca8e25479105.tar.gz
Address feedback
Diffstat (limited to 'src/transports/git.c')
-rw-r--r--src/transports/git.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transports/git.c b/src/transports/git.c
index a36a0a71c..3a0b86345 100644
--- a/src/transports/git.c
+++ b/src/transports/git.c
@@ -201,8 +201,8 @@ static int _git_uploadpack_ls(
t->current_stream = s;
git__free(host);
git__free(port);
- if (user) git__free(user);
- if (pass) git__free(pass);
+ git__free(user);
+ git__free(pass);
return 0;
on_error:
@@ -257,8 +257,8 @@ static int _git_receivepack_ls(
t->current_stream = s;
git__free(host);
git__free(port);
- if (user) git__free(user);
- if (pass) git__free(pass);
+ git__free(user);
+ git__free(pass);
return 0;
on_error: