gitweb: Use --git-dir parameter instead of setting $ENV{'GIT_DIR'}
[gitweb.git] / builtin-fmt-merge-msg.c
index a5ed8dbbac2a1320e7cf61e16eeccdf5c5cee915..76d22b47ba2906ecb59f0d8e279cf55a80bf8c86 100644 (file)
@@ -55,8 +55,7 @@ static void free_list(struct list *list)
 
        for (i = 0; i < list->nr; i++) {
                free(list->list[i]);
-               if (list->payload[i])
-                       free(list->payload[i]);
+               free(list->payload[i]);
        }
        free(list->list);
        free(list->payload);