From: Michael Stapelberg Date: Tue, 4 Jan 2011 21:37:50 +0000 (+0100) Subject: cmdparse: free strings X-Git-Tag: tree-pr2~143 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bdbda2029335447187273dbfb8f08d40bc97019d;p=i3%2Fi3 cmdparse: free strings --- 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); } ;