projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbbd398
)
* fix memleaks in preferences
author
Wilfried Göesgens
<willi@citadel.org>
Sat, 7 Feb 2009 16:24:34 +0000
(16:24 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sat, 7 Feb 2009 16:24:34 +0000
(16:24 +0000)
webcit/preferences.c
patch
|
blob
|
history
diff --git
a/webcit/preferences.c
b/webcit/preferences.c
index a245928dfbdea8141d61c24d962ead7c88207165..19181cca0d1cb9b0e843ab956f2304e32b5cfe42 100644
(file)
--- a/
webcit/preferences.c
+++ b/
webcit/preferences.c
@@
-107,11
+107,9
@@
void GetPrefTypes(HashList *List)
void ParsePref(HashList **List, StrBuf *ReadBuf)
{
- StrBuf *Key;
Preference *Data = NULL;
Preference *LastData = NULL;
- Key = NewStrBuf();
while (StrBuf_ServGetln(ReadBuf),
strcmp(ChrPtr(ReadBuf), "000"))
{
@@
-633,6
+631,7
@@
void GetPreferences(HashList *Setting)
}
}
WCC->hash_prefs = Tmp;
+ DeleteHashPos(&It);
}