Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Thirteenth batch for 2.14
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index feb227a8377cd3ca5fb524fd04ebccb713dede4b..fb1fd809dcbda2ed91c7d9337584a709a248971b 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-7,6
+7,7
@@
* creation etc.
*/
#include "cache.h"
+#include "config.h"
#include "string-list.h"
#include "lockfile.h"
#include "delta.h"
@@
-610,8
+611,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;