]> git.sur5r.net Git - glabels/commitdiff
Fixed potential memory leak.
authorJim Evins <evins@snaught.com>
Sat, 18 Dec 2010 20:15:08 +0000 (15:15 -0500)
committerJim Evins <evins@snaught.com>
Sat, 18 Dec 2010 20:15:44 +0000 (15:15 -0500)
libglbarcode/lgl-barcode-code39.c

index 02a6b77434afd7e879d350e0c1abddcf08252dab..723d90f288519e3c7d83b176de07b0cb41b31237 100644 (file)
@@ -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;
         }