Permalink
Browse files

IMAP: fix small leak

  • Loading branch information...
1 parent 2f19388 commit 624b5df6ea31f4b6957e50c32a075de088dc51a5 @pjstevns committed Feb 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/dbmail-mailbox.c
@@ -949,6 +949,7 @@ static int _handle_search_args(DbmailMailbox *self, char **search_keys, u64_t *i
/* ignore the charset. Let the database handle this */
} else if ( MATCH(key, "charset") ) {
(*idx)++;// FIXME: check for valid charset here
+ if (self->charset) g_free(self->charset);
self->charset = g_strdup(search_keys[*idx]);
TRACE(TRACE_DEBUG,"using charset [%s] for searching", self->charset);
(*idx)++;

0 comments on commit 624b5df

Please sign in to comment.