Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.c @ 1074:b2fc694a8228
Fix a few memory leaks after calls to parse_assigment()
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 03 Dec 2006 19:29:54 +0100 |
parents | 9eaacc0ad3a2 |
children | 5be2408a6534 |
comparison
equal
deleted
inserted
replaced
1073:253e8988eb5c | 1074:b2fc694a8228 |
---|---|
167 // | 167 // |
168 // If this isn't a assignment (no = char), the function will set *pval | 168 // If this isn't a assignment (no = char), the function will set *pval |
169 // to NULL and return FALSE. | 169 // to NULL and return FALSE. |
170 // | 170 // |
171 // The caller should g_free() *pkey and *pval (if not NULL) after use. | 171 // The caller should g_free() *pkey and *pval (if not NULL) after use. |
172 guint parse_assigment(gchar *assignment, const gchar **pkey, const gchar **pval) | 172 guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval) |
173 { | 173 { |
174 char *key, *val, *t, *p; | 174 char *key, *val, *t, *p; |
175 | 175 |
176 *pkey = *pval = NULL; | 176 *pkey = *pval = NULL; |
177 | 177 |