From: Jim Evins Date: Sat, 18 Dec 2010 20:15:08 +0000 (-0500) Subject: Fixed potential memory leak. X-Git-Tag: glabels-2_3_1~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a20a5bbf88612bd6ef88e7eeb022fca824905da8;p=glabels Fixed potential memory leak. --- 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; }