Code

frontend: Free parser-allocated memory after handling a command.
authorSebastian Harl <sh@tokkee.org>
Sun, 12 Jan 2014 20:45:32 +0000 (21:45 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 12 Jan 2014 20:45:32 +0000 (21:45 +0100)
src/frontend/connection.c

index 72041ff723633fab6a932d6cd408ef4665f95b49..5ed49ddebfeb0584a69b55ac06fb06c7a1d5801e 100644 (file)
@@ -217,6 +217,8 @@ command_handle(sdb_conn_t *conn)
 
                        if (node)
                                status = sdb_fe_exec(conn, node);
+
+                       sdb_llist_destroy(parsetree);
                }
 
                case CONNECTION_LIST: