Re: [evolution-patches] Memory leaks; shell part



On Tue, 2003-04-15 at 13:52, Hans Petter Jansson wrote:
> It's just so I don't have to free tmp on both branches of the test. I
> usually prefer to allocate, test, free, then branch on the test result,
> instead of allocate, test, branch, free on both branches.
> 
> I can put in two g_free (tmp) there instead of an extra variable, if you
> think it'll look nicer.

Oh, actually, I think the idiom just confused me.  Looks good.

-- Ettore

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]