From bdbda2029335447187273dbfb8f08d40bc97019d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 4 Jan 2011 22:37:50 +0100 Subject: [PATCH] cmdparse: free strings --- src/cmdparse.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmdparse.y b/src/cmdparse.y index 98819183..cea93d1a 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -315,6 +315,7 @@ exec: { printf("should execute %s\n", $3); start_application($3); + free($3); } ; @@ -540,6 +541,7 @@ move: printf("should move window to workspace %s\n", $5); /* get the workspace */ Con *ws = workspace_get($5); + free($5); /* check if the match is empty, not if the result is empty */ if (match_is_empty(¤t_match)) @@ -563,6 +565,7 @@ restore: { printf("restoring \"%s\"\n", $3); tree_append_json($3); + free($3); } ; -- 2.39.5