From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 5/6] cfgfile: fixed calling free for each section in rte_cfgfile_close Date: Thu, 18 Jun 2015 14:29:44 +0200 Message-ID: <4427464.uLsMqpVbGa@xps13> References: <1434552528-3576-1-git-send-email-maciejx.t.gajdzica@intel.com> <1434552528-3576-6-git-send-email-maciejx.t.gajdzica@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Pawel Wodkowski Return-path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id D4456C5FA for ; Thu, 18 Jun 2015 14:30:46 +0200 (CEST) Received: by wiga1 with SMTP id a1so169699822wig.0 for ; Thu, 18 Jun 2015 05:30:46 -0700 (PDT) In-Reply-To: <1434552528-3576-6-git-send-email-maciejx.t.gajdzica@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-06-17 16:48, Maciej Gajdzica: > From: Pawel Wodkowski > > Signed-off-by: Pawel Wodkowski What is fixed exactly? What was the problem? > @@ -60,6 +60,15 @@ struct rte_cfgfile { > * for new entries do we add in */ > #define CFG_ALLOC_ENTRY_BATCH 16 > > +/* Helpers */ > + > +#define _skip_spaceses(str) ({ \ > + __typeof__(str) p = (str); \ > + while (isspace(*p)) \ > + p++; \ > + p; \ > +}) This macro is not used in this patch nor related. Is "spaceses" a typo? > @@ -523,7 +530,7 @@ const char * > rte_cfgfile_get_entry(struct rte_cfgfile *cfg, const char *sectionname, > const char *entryname) > { > - int i; > + size_t i; Why this change? seems not related to free.