Merge pull request #2901 from orestisf1993/issue-2900

Set marks to NULL after freeing
This commit is contained in:
Michael Stapelberg 2017-09-07 14:55:37 +02:00 committed by GitHub
commit f54ee70ff9
2 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,7 @@ static int json_end_map(void *ctx) {
}
free(marks);
marks = NULL;
num_marks = 0;
}

View File

@ -20,6 +20,8 @@ use i3test;
cmd 'open';
cmd 'mark foo';
cmd 'open';
cmd 'mark bar';
cmd 'restart';