From 4451e07fab0e32182c7057a12e7b210f397414e7 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 17 Feb 2010 13:47:28 +0000 Subject: [PATCH] Ticket #2028: fixed memory leak in mc_search__hex_translate_to_regex() function. Thanks Vit Rosin for the original patch. Signed-off-by: Andrew Borodin --- lib/search/hex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/search/hex.c b/lib/search/hex.c index 2ecdafbd1..b8d772967 100644 --- a/lib/search/hex.c +++ b/lib/search/hex.c @@ -87,6 +87,9 @@ mc_search__hex_translate_to_regex (gchar * str, gsize * len) } loop++; } + + g_free (tmp_str); + *len = buff->len; return buff; }