* add VCard-Context
[citadel.git] / webcit / subst.c
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 {