From 4fc63448070fbdef110356e71868e9c56d61d09a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 7 Mar 2011 17:58:13 +0000 Subject: Fix memory leak. git-svn-id: http://svn.drobilla.net/sord/trunk@48 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/syntax.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/syntax.c b/src/syntax.c index 939ddf1..eb57cb9 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -252,6 +252,7 @@ sord_read_file_handle(SordModel model, serd_reader_free(state.reader); serd_read_state_free(state.read_state); + serd_env_free(env); return success; } @@ -285,6 +286,7 @@ sord_read_string(SordModel model, serd_reader_free(state.reader); serd_read_state_free(state.read_state); + serd_env_free(env); return success; } -- cgit v1.2.1