Add TODO comment about known memory management issue
authorTomas Mlcoch <tmlcoch@redhat.com>
Wed, 5 Sep 2012 14:15:04 +0000 (16:15 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Wed, 5 Sep 2012 14:15:04 +0000 (16:15 +0200)
src/load_metadata.c

index 1ac76c9..bec7c36 100644 (file)
 #define PKGS_REALLOC_STEP       2000
 
 
+/** TODO:
+ * This module has one known issue about a memory management.
+ * The issue acts in cases when you are using one single string chunk
+ * for all parsed packages.
+ * (use_single_chunk != 0 during call of cr_new_metadata())
+ *
+ * Description of issue:
+ * During parsing of primary.xml, all string from obtained during parsing are
+ * stored into the chunk. When we have all the information from primary.xml and
+ * we found out that we don't want the package (according the pkglist passed
+ * via cr_new_metadata) and we drop the package (package is not inserted
+ * into the hashtable of metadatas), all strings from primary.xml are yet
+ * stored in the chunk and they remains there!
+ *
+ * This issue is not so important, but it shoud be fixed in future.
+ *                                                      Tomas
+ **/
+
 typedef enum {
     NONE_ELEM,
     NAME_ELEM,