[balsa/wip/gtk4: 153/351] balsa-index: Plug a leak



commit 610ee65b5be91fcbe67102d47e954ead43892236
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Feb 7 19:29:12 2018 -0500

    balsa-index: Plug a leak

 src/balsa-index.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/balsa-index.c b/src/balsa-index.c
index 1800c5c..5f6f7e1 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -2448,8 +2448,8 @@ bndx_pipe_queue_last(struct BndxPipeQueue *queue)
            libbalsa_information(LIBBALSA_INFORMATION_ERROR,
                                 _("Cannot read message %u to pass to %s"),
                                 msgno, queue->pipe_cmd);
-       g_free(pipe);
        bndx_pipe_queue_last(queue);
+       g_free(pipe);
        return;
     }
 
@@ -2490,6 +2490,7 @@ bndx_pipe_queue_last(struct BndxPipeQueue *queue)
        printf("Could not spawn pipe %s : %s\n", queue->pipe_cmd,
               error ? error->message : "unknown");
        g_clear_error(&error);
+       g_free(pipe);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]