[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new warnings
From: |
Ben Pfaff |
Subject: |
Re: new warnings |
Date: |
Wed, 01 Aug 2012 07:54:06 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
John Darrington <address@hidden> writes:
> On Tue, Jul 31, 2012 at 10:55:59PM -0700, Ben Pfaff wrote:
> > I don't see anything that destroys struct ods_reader's dict in
> > the successful case, so perhaps the dict_destroy() should be
> > moved into ods_file_casereader_destroy() so it gets executed in
> > both cases?
>
> I didn't do anything about this. John, do you want to see
> whether this is a real leak?
>
> Putting dict_destroy in ods_file_casereader_destroy would not be correct.
> A pointer to the dict is passed into ods_open_reader and is filled if
> successful,
> whereupon it becomes owned by the caller (in our case we then pass ownership
> to
> the dataset by calling dataset_set_dict)
That makes sense, thanks.