From a20a5bbf88612bd6ef88e7eeb022fca824905da8 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sat, 18 Dec 2010 15:15:08 -0500 Subject: [PATCH] Fixed potential memory leak. --- libglbarcode/lgl-barcode-code39.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libglbarcode/lgl-barcode-code39.c b/libglbarcode/lgl-barcode-code39.c index 02a6b774..723d90f2 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; } -- 2.39.5