]> gitweb.ps.run Git - ps-cgit/blobdiff - cmd.c
Free reflists after usage
[ps-cgit] / cmd.c
diff --git a/cmd.c b/cmd.c
index 899e913b30967d4b4e1d3aa8a770dae148ab60ce..198bf2fda549753dca3f4159c6680e00c49b5948 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -166,7 +166,7 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx)
                        ctx->qry.page = "repolist";
        }
 
-       for(i = 0; i < sizeof(cmds)/sizeof(*cmds); i++)
+       for (i = 0; i < sizeof(cmds)/sizeof(*cmds); i++)
                if (!strcmp(ctx->qry.page, cmds[i].name))
                        return &cmds[i];
        return NULL;