aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-02-23 09:08:15 -0400
committerDavid Bremner <david@tethera.net>2017-02-23 09:08:15 -0400
commite0e8586fc72763571f9eafeb831c7bc79a15273d (patch)
tree70fc4d756b58c9b4b570741c52520c47cf96895b
parent2c5eed16b3b0bff9b6f488d3949ebdb62e8d1c35 (diff)
parent48253190adb70fcc1783beeeb386c19ff4832fa9 (diff)
Merge branch 'release'
Merge in g_hash_table read-after-free fix
-rw-r--r--bindings/python/notmuch/version.py2
-rw-r--r--debian/changelog2
-rw-r--r--lib/database.cc4
-rw-r--r--version2
4 files changed, 5 insertions, 5 deletions
diff --git a/bindings/python/notmuch/version.py b/bindings/python/notmuch/version.py
index 1397fefd..8d700260 100644
--- a/bindings/python/notmuch/version.py
+++ b/bindings/python/notmuch/version.py
@@ -1,3 +1,3 @@
# this file should be kept in sync with ../../../version
-__VERSION__ = '0.23.5'
+__VERSION__ = '0.23.6'
SOVERSION = '4'
diff --git a/debian/changelog b/debian/changelog
index ccce50e1..9e7868f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-notmuch (0.23.5-2) UNRELEASED; urgency=medium
+notmuch (0.23.6-1) UNRELEASED; urgency=medium
* Use gpgconf --create-socketdir to create gpg-agent sockets for
test suite.
diff --git a/lib/database.cc b/lib/database.cc
index 8016c4df..386dcd17 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -644,7 +644,7 @@ parse_references (void *ctx,
ref = _parse_message_id (ctx, refs, &refs);
if (ref && strcmp (ref, message_id)) {
- g_hash_table_insert (hash, ref, NULL);
+ g_hash_table_add (hash, ref);
last_ref = ref;
}
}
@@ -653,7 +653,7 @@ parse_references (void *ctx,
* reference to the database. We should avoid making a message
* its own parent, thus the above check.
*/
- return last_ref;
+ return talloc_strdup(ctx, last_ref);
}
notmuch_status_t
diff --git a/version b/version
index f6de0017..df47809d 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-0.23.5
+0.23.6