From dee57ad025e7ad9971e44ea30b6aab3806c06fc6 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 23 Apr 2008 01:49:11 +0200 Subject: [PATCH] libsmbconf: remove unnecessary talloc success check from smbconf_txt.c talloc_stackframe() panics on NOMEM. Michael --- source/lib/smbconf/smbconf_txt.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/lib/smbconf/smbconf_txt.c b/source/lib/smbconf/smbconf_txt.c index c4c636d0bcf..1a29f401649 100644 --- a/source/lib/smbconf/smbconf_txt.c +++ b/source/lib/smbconf/smbconf_txt.c @@ -302,10 +302,6 @@ static WERROR smbconf_txt_get_share_names(struct smbconf_ctx *ctx, } tmp_ctx = talloc_stackframe(); - if (tmp_ctx == NULL) { - werr = WERR_NOMEM; - goto done; - } /* make sure "global" is always listed first, * possibly after NULL section */ @@ -411,10 +407,6 @@ static WERROR smbconf_txt_get_share(struct smbconf_ctx *ctx, } tmp_ctx = talloc_stackframe(); - if (tmp_ctx == NULL) { - werr = WERR_NOMEM; - goto done; - } tmp_service = TALLOC_ZERO_P(tmp_ctx, struct smbconf_service); if (tmp_service == NULL) {