reverted gccgo argv_list free

This commit is contained in:
Unbit
2013-11-23 04:59:12 +01:00
parent 40fee74a5f
commit 08525a91ee
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -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;
-1
View File
@@ -203,7 +203,6 @@ static void uwsgi_gccgo_initialize() {
n++;
}
runtime_args(argc, argv);
free(argv_list);
}
else {
char *argv[2] = {0,0};