]> git.ipfire.org Git - thirdparty/git.git/blobdiff - remote-testsvn.c
coccinelle: make use of the "type" FREE_AND_NULL() rule
[thirdparty/git.git] / remote-testsvn.c
index 50404ef3438f37ae33e3590f1e7205581087f75a..078b0c3139e6797f9021876c7a8f1906901f70b1 100644 (file)
@@ -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;