Browse Source

Fix memleak in parse_delproxy.

master
Con Kolivas 8 years ago
parent
commit
9f31d21f5e
  1. 1
      src/generator.c

1
src/generator.c

@ -2492,6 +2492,7 @@ static void parse_delproxy(ckpool_t *ckp, gdata_t *gdata, const int sockd, const
goto out; goto out;
} }
json_get_int(&id, val, "id"); json_get_int(&id, val, "id");
json_decref(val);
proxy = proxy_by_id(gdata, id); proxy = proxy_by_id(gdata, id);
if (!proxy) { if (!proxy) {
val = json_errormsg("Proxy id %d not found", id); val = json_errormsg("Proxy id %d not found", id);

Loading…
Cancel
Save