From: Sebastian Harl Date: Fri, 27 Feb 2015 17:13:22 +0000 (+0100) Subject: frontend: Fixed a memory leak in an error condition in FETCH. X-Git-Tag: sysdb-0.8.0~163 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=5f7fabe11e0aa6a47090e2b1a971c95ecc0b9209 frontend: Fixed a memory leak in an error condition in FETCH. --- diff --git a/src/frontend/query.c b/src/frontend/query.c index aef0ddc..2c80be7 100644 --- a/src/frontend/query.c +++ b/src/frontend/query.c @@ -321,6 +321,7 @@ sdb_fe_exec_fetch(sdb_conn_t *conn, int type, sdb_strbuf_sprintf(conn->errbuf, "Failed to fetch %s %s: " "host %s not found", SDB_STORE_TYPE_TO_NAME(type), name, hostname); + sdb_object_deref(SDB_OBJ(host)); return -1; } if (type == SDB_HOST) {