From 1337ed1c55efc959a9c2ce85ec11b8119fddc95a Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 8 Apr 2017 21:15:31 +0300 Subject: [PATCH] (transform_source): fix memory leak in error case. Signed-off-by: Andrew Borodin --- src/filemanager/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/filemanager/file.c b/src/filemanager/file.c index 57c2ed110..c2590b8af 100644 --- a/src/filemanager/file.c +++ b/src/filemanager/file.c @@ -246,6 +246,7 @@ transform_source (file_op_context_t * ctx, const vfs_path_t * source_vpath) if (ctx->search_handle->error_str != NULL) message (D_ERROR, MSG_ERROR, "%s", ctx->search_handle->error_str); + g_free (q); q = NULL; transform_error = FILE_ABORT; }