Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
hook: add a simple first example
[gitweb.git]
/
branch.c
diff --git
a/branch.c
b/branch.c
index a8a548ccf2870c99bbdbcdc7036003aa648faa0c..36541d05cd7b934bceba1af4fd4c121e51cd862b 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;