[glabels] Fixed potential memory leak.



commit a20a5bbf88612bd6ef88e7eeb022fca824905da8
Author: Jim Evins <evins snaught com>
Date:   Sat Dec 18 15:15:08 2010 -0500

    Fixed potential memory leak.

 libglbarcode/lgl-barcode-code39.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libglbarcode/lgl-barcode-code39.c b/libglbarcode/lgl-barcode-code39.c
index 02a6b77..723d90f 100644
--- a/libglbarcode/lgl-barcode-code39.c
+++ b/libglbarcode/lgl-barcode-code39.c
@@ -217,6 +217,8 @@ lgl_barcode_code39_new (lglBarcodeType  type,
         /* First get code string */
         code = code39_encode (canon_data, checksum_flag);
         if (code == NULL) {
+                g_free (canon_data);
+                g_free (display_data);
                 return NULL;
         }
 



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