[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] igraph_isohandler_t: whose responsibility is to free map12
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] igraph_isohandler_t: whose responsibility is to free map12 and map21? |
Date: |
Tue, 8 Sep 2015 11:27:52 +0200 |
Hi Szabolcs,
The handler should not free map12 or map21; these are allocated by
igraph and it actually re-uses them for the next callback if I
remember correctly.
T.
T.
On Tue, Sep 8, 2015 at 9:53 AM, Szabolcs Horvát <address@hidden> wrote:
> Dear All,
>
> The igraph_isomorphic_function_vf2() function takes a callback of the type
>
> typedef igraph_bool_t igraph_isohandler_t(const igraph_vector_t
> *map12, const igraph_vector_t *map21, void *arg);
>
> Whose responsibility is it to igraph_vector_destroy() map12 and map21?
> Does it need to be done in the handler or does
> igraph_isomorphic_function_vf2() do it?
>
> I am hoping and assuming that it is left to the handler, but I would
> like to make sure.
>
> Szabolcs
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help