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]
/
remote-testsvn.c
diff --git
a/remote-testsvn.c
b/remote-testsvn.c
index 50404ef3438f37ae33e3590f1e7205581087f75a..078b0c3139e6797f9021876c7a8f1906901f70b1 100644
(file)
--- a/
remote-testsvn.c
+++ b/
remote-testsvn.c
@@
-66,8
+66,7
@@
static char *read_ref_note(const unsigned char sha1[20])
else if (!msglen || type != OBJ_BLOB) {
error("Note contains unusable content. "
"Is something else using this notes tree? %s", notes_ref);
- free(msg);
- msg = NULL;
+ FREE_AND_NULL(msg);
}
free_notes(NULL);
return msg;