]> git.ipfire.org Git - thirdparty/git.git/blobdiff - line-log.c
coccinelle: make use of the "type" FREE_AND_NULL() rule
[thirdparty/git.git] / line-log.c
index b9087814b8ccd0082efc41c617e33e8046ea17d5..79eded7363bce69c1d540a66ed3ba2d74310d50f 100644 (file)
@@ -610,8 +610,7 @@ parse_lines(struct commit *commit, const char *prefix, struct string_list *args)
                line_log_data_insert(&ranges, full_name, begin, end);
 
                free_filespec(spec);
-               free(ends);
-               ends = NULL;
+               FREE_AND_NULL(ends);
        }
 
        for (p = ranges; p; p = p->next)