Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
*.[ch] refactoring: make use of the FREE_AND_NULL() macro
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 59a4ed2ed32336b41ab8f3b1d4aca30f045aa084..d67c88bb8d3483475ce8b6ecd7330d30a9311a81 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-610,8
+610,7
@@
char *compute_alternate_path(const char *path, struct strbuf *err)
out:
if (seen_error) {
- free(ref_git);
- ref_git = NULL;
+ FREE_AND_NULL(ref_git);
}
return ref_git;