From 08525a91eefb42f77e41bc70d002a3de0e88a435 Mon Sep 17 00:00:00 2001 From: Unbit Date: Sat, 23 Nov 2013 04:59:12 +0100 Subject: [PATCH] reverted gccgo argv_list free --- core/config.c | 8 ++++---- plugins/gccgo/gccgo_plugin.c | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/config.c b/core/config.c index bded412b..dd638ebf 100644 --- a/core/config.c +++ b/core/config.c @@ -720,18 +720,18 @@ char *uwsgi_manage_placeholder(char *key) { } else if (!strcmp(p, "++")) { if (current_value) { - int64_t tmp_value = strtoll(current_value, NULL, 10); + int64_t tmp_num = strtoll(current_value, NULL, 10); free(current_value); - current_value = uwsgi_64bit2str(tmp_value+1); + current_value = uwsgi_64bit2str(tmp_num+1); } state = concat; continue; } else if (!strcmp(p, "--")) { if (current_value) { - int64_t tmp_value = strtoll(current_value, NULL, 10); + int64_t tmp_num = strtoll(current_value, NULL, 10); free(current_value); - current_value = uwsgi_64bit2str(tmp_value-1); + current_value = uwsgi_64bit2str(tmp_num-1); } state = concat; continue; diff --git a/plugins/gccgo/gccgo_plugin.c b/plugins/gccgo/gccgo_plugin.c index 7f99bcf2..482a8f28 100644 --- a/plugins/gccgo/gccgo_plugin.c +++ b/plugins/gccgo/gccgo_plugin.c @@ -203,7 +203,6 @@ static void uwsgi_gccgo_initialize() { n++; } runtime_args(argc, argv); - free(argv_list); } else { char *argv[2] = {0,0};