From ff3b87253171dc8b76ec26b70ba738a2d3a603ac Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 22 Jul 2014 12:53:40 +0100 Subject: [PATCH] Fix keyd memory leak on error reading client provided search text --- keyd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/keyd.c b/keyd.c index 2784257..18e9ddc 100644 --- a/keyd.c +++ b/keyd.c @@ -344,6 +344,7 @@ static int sock_do(struct onak_dbctx *dbctx, int fd) bytes = read(fd, search, count); if (bytes != count) { ret = 1; + free(search); break; } search[count] = 0; -- 2.39.5