From 5f7fabe11e0aa6a47090e2b1a971c95ecc0b9209 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 27 Feb 2015 18:13:22 +0100 Subject: [PATCH] frontend: Fixed a memory leak in an error condition in FETCH. --- src/frontend/query.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.30.2