mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
(transform_source): fix memory leak in error case.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
763e996076
commit
1337ed1c55
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user