ed4a1bedfe459ab472a17e654161777bd9bb0a20
kent
  Wed Dec 11 17:00:05 2013 -0800
Adding cgiDictionaryFreeList function.
diff --git src/inc/cheapcgi.h src/inc/cheapcgi.h
index 26710b0..dc96f0e 100644
--- src/inc/cheapcgi.h
+++ src/inc/cheapcgi.h
@@ -55,30 +55,33 @@
 struct cgiVar* cgiVarList();
 /* return the list of cgiVar's */
 
 struct cgiDictionary
 /* Stuff to encapsulate parsed out CGI vars. */
     {
     struct cgiDictionary *next;	    /* Next in list if we have multiple */
     char *stringData;		    /* Where values if cgi-vars live. */
     struct hash *hash;		    /* Keyed by cgi-var name, value is cgiVar */
     struct cgiVar *list;	    /* List of all vars. */
     };
 
 void cgiDictionaryFree(struct cgiDictionary **pD);
 /* Free up resources associated with dictionary. */
 
+void cgiDictionaryFreeList(struct cgiDictionary **pList);
+/* Free up a whole list of cgiDictionaries */
+
 struct cgiDictionary *cgiDictionaryFromEncodedString(char *encodedString);
 /* Giving a this=that&this=that string,  return cgiDictionary parsed out from it. 
  * This does *not* destroy input like the lower level cgiParse functions do. */
 
 char *findCookieData(char *varName);
 /* Get the string associated with varName from the cookie string. */
 
 void dumpCookieList();
 /* Print out the cookie list. */
 
 boolean cgiIsOnWeb();
 /* Return TRUE if looks like we're being run as a CGI. */
 
 char *cgiRequestMethod();
 /* Return CGI REQUEST_METHOD (such as 'GET/POST/PUT/DELETE/HEAD') */