[accounts-dialog] Fix a double-free
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [accounts-dialog] Fix a double-free
- Date: Fri, 22 Jan 2010 01:10:52 +0000 (UTC)
commit 0b9666c1bc5fd4144b82024f5eb2cbfade87fabd
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 21 20:08:55 2010 -0500
Fix a double-free
src/um-user.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/um-user.c b/src/um-user.c
index 195be6f..0d12b80 100644
--- a/src/um-user.c
+++ b/src/um-user.c
@@ -972,7 +972,7 @@ make_crypted (const gchar *plain)
}
g_string_append_c (salt, '$');
- result = crypt (plain, salt->str);
+ result = g_strdup (crypt (plain, salt->str));
g_string_free (salt, TRUE);
g_rand_free (rand);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]