Index: trunk/src/libcschem/plug_library.c =================================================================== --- trunk/src/libcschem/plug_library.c (revision 10291) +++ trunk/src/libcschem/plug_library.c (revision 10292) @@ -203,9 +203,9 @@ } else { /* matching real_path: reuse */ TODO("TODO#41: sharing root pointers may not be a good idea: they will not have unique names; see the other TODO#41"); + if (real_path != path) free(real_path); free(path); path = NULL;/* we are going to use the existing one in root */ if (root->backend != be_new) { - if (real_path != path) free(real_path); if (optional) return 0; rnd_message(RND_MSG_ERROR, "%s library mapping error: different plugins claim to handle '%s'\n", master->name, root->name);