OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patch-ids.c: use hashmap correctly
[git-core/git.git]
/
branch.c
diff --git
a/branch.c
b/branch.c
index
a8a548c
..
36541d0
100644
(file)
--- a/
branch.c
+++ b/
branch.c
@@
-25,8
+25,7
@@
static int find_tracked_branch(struct remote *remote, void *priv)
} else {
free(tracking->spec.src);
if (tracking->src) {
- free(tracking->src);
- tracking->src = NULL;
+ FREE_AND_NULL(tracking->src);
}
}
tracking->spec.src = NULL;