]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fix memory leak in dialogboxes checklist
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Nov 2011 15:08:09 +0000 (16:08 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Nov 2011 15:08:09 +0000 (16:08 +0100)
dialogboxes.c

index c518f1628e2fb8e3a966b98d1bbc69421c73fccb..3e6e6e485b311a6a63bf1c2efafe585b0bf91b84 100644 (file)
@@ -521,6 +521,8 @@ int checkList(const char * text, int height, int width, poptContext optCon,
        }
     }
 
+    free(cbInfo);
+    free(cbStates);
     newtFormDestroy(form);
 
     return rc;