From: Vsevolod Stakhov Date: Fri, 17 Jun 2016 13:28:58 +0000 (+0100) Subject: [Fix] Do not die if shmem_mkstemp fails X-Git-Tag: 1.3.0~303 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4bb28b80a77eaf9ae07d67092cce44a69074bdeb;p=rspamd.git [Fix] Do not die if shmem_mkstemp fails --- 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; } }