From 4bb28b80a77eaf9ae07d67092cce44a69074bdeb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 17 Jun 2016 14:28:58 +0100 Subject: [PATCH] [Fix] Do not die if shmem_mkstemp fails --- src/libutil/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libutil/util.c b/src/libutil/util.c index aaaa09f27..20da1a371 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1926,8 +1926,11 @@ rspamd_shmem_mkstemp (gchar *pattern) break; } else if (errno != EEXIST) { - g_error ("%s: failed to create temp shmem %s: %s", + msg_err ("%s: failed to create temp shmem %s: %s", G_STRLOC, nbuf, strerror (errno)); + g_free (nbuf); + + return -1; } } -- 2.39.5