| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7595,6 +7595,7 @@ PyObject *igraphmodule_Graph_motifs_randesu(igraphmodule_GraphObject *self, | |||
| 7595 | 7595 | return NULL; | |
| 7596 | 7596 | Py_RETURN_NONE; | |
| 7597 | 7597 | } else { | |
| 7598 | + igraph_vector_destroy(&cut_prob); | ||
| 7598 | 7599 | PyErr_SetString(PyExc_TypeError, "callback must be callable or None"); | |
| 7599 | 7600 | return NULL; | |
| 7600 | 7601 | } | |
@@ -11747,11 +11748,14 @@ PyObject *igraphmodule_Graph_bfs(igraphmodule_GraphObject * self, | |||
| 11747 | 11748 | ||
| 11748 | 11749 | if (igraph_vector_int_init(&parents, igraph_vcount(&self->g))) { | |
| 11749 | 11750 | igraph_vector_int_destroy(&vids); | |
| 11750 | - igraph_vector_int_destroy(&parents); | ||
| 11751 | + igraph_vector_int_destroy(&layers); | ||
| 11751 | 11752 | return igraphmodule_handle_igraph_error(); | |
| 11752 | 11753 | } | |
| 11753 | 11754 | ||
| 11754 | 11755 | if (igraph_bfs_simple(&self->g, vid, mode, &vids, &layers, &parents)) { | |
| 11756 | + igraph_vector_int_destroy(&vids); | ||
| 11757 | + igraph_vector_int_destroy(&layers); | ||
| 11758 | + igraph_vector_int_destroy(&parents); | ||
| 11755 | 11759 | igraphmodule_handle_igraph_error(); | |
| 11756 | 11760 | return NULL; | |
| 11757 | 11761 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments