* add VCard-Context
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 14 Oct 2010 21:12:00 +0000 (23:12 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 14 Oct 2010 21:12:00 +0000 (23:12 +0200)
* fix memleaks in parser.

webcit/subst.c
webcit/subst.h

index 4e08db7ace058e6464fdd11db346d417f143a139..3a9d26169f6142024c90f1d8338b76f08a23e011 100644 (file)
@@ -110,6 +110,7 @@ const char *CtxNames[]  = {
        "Context ICAL",
        "Context DavNamespace",
        "Context TAB",
+       "Context VCARD",
        "Context UNKNOWN"
 };
 
@@ -881,6 +882,8 @@ int GetNextParameter(StrBuf *Buf,
                                        }
                                }
                        }
+                       FreeStrBuf(&pToken);
+                       FreeStrBuf(&Match);
                }
                else if (strchr(Parm->Start, '&') != NULL)
                {
@@ -917,6 +920,8 @@ int GetNextParameter(StrBuf *Buf,
                                        }
                                }
                        }
+                       FreeStrBuf(&Match);
+                       FreeStrBuf(&pToken);
                }
                else {
 
index d496e30935345475303a13eb678c1d0abf2218db..906768316401a624f9ea6c257eaa9e2e1e5275ce 100644 (file)
@@ -56,8 +56,9 @@ enum {
 #define CTX_ICAL 18
 #define CTX_DAVNS 19
 #define CTX_TAB 20
+#define CTX_VCARD 21
 
-#define CTX_UNKNOWN 21
+#define CTX_UNKNOWN 22
 
 
 /**