summaryrefslogtreecommitdiff
path: root/lib/command_py.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2017-10-17 23:03:43 -0500
committerGitHub <noreply@github.com>2017-10-17 23:03:43 -0500
commit5e3dd606da1c725466d9c5027af7d3e2f04f4b2e (patch)
treee5fa93db995c9516cdaf0e6799307aeac8af0f76 /lib/command_py.c
parentc9d8ffd04cb09b1f9878998a2a0bbc2e06668d1b (diff)
parente871b669e12d3d81fe470f2eb937381af7b4aacd (diff)
Merge pull request #1333 from donaldsharp/command_py_leak
lib: Fix small memory leak when using command_py.c
Diffstat (limited to 'lib/command_py.c')
-rw-r--r--lib/command_py.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command_py.c b/lib/command_py.c
index 755cfb55ce..58b7982665 100644
--- a/lib/command_py.c
+++ b/lib/command_py.c
@@ -250,6 +250,8 @@ static PyObject *graph_parse(PyTypeObject *type, PyObject *args,
static void graph_wrap_free(void *arg)
{
struct wrap_graph *wgraph = arg;
+
+ graph_delete_graph(wgraph->graph);
free(wgraph->nodewrappers);
free(wgraph->definition);
}