OSDN Git Service

diff.c: emit_diff_symbol learns about DIFF_SYMBOL_SUMMARY
[git-core/git.git] / remote-testsvn.c
index e034ea0..0ff4a31 100644 (file)
@@ -66,8 +66,7 @@ static char *read_ref_note(const struct object_id *oid)
        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;