plugins/corerouter: use correct goto label

After cwd has been allocated we should exit through end0.
Spotted by Coverity, CID #971054.
This commit is contained in:
Riccardo Magliocchetti
2013-01-26 18:39:37 +01:00
parent ec1bfdeb2a
commit 01e4d07fb8
+1 -1
View File
@@ -927,7 +927,7 @@ void corerouter_send_stats(struct uwsgi_corerouter *ucr) {
char *cwd = uwsgi_get_cwd();
if (uwsgi_stats_keyval_comma(us, "cwd", cwd)) goto end0;
if (uwsgi_stats_keylong_comma(us, "active_sessions", (unsigned long long) ucr->active_sessions)) goto end;
if (uwsgi_stats_keylong_comma(us, "active_sessions", (unsigned long long) ucr->active_sessions)) goto end0;
if (uwsgi_stats_key(us , ucr->short_name)) goto end0;
if (uwsgi_stats_list_open(us)) goto end0;