mirror of
https://github.com/vale981/spectrwm
synced 2025-03-04 17:31:40 -05:00
Fix autorun.
free() from memory leak fix was too early.
This commit is contained in:
parent
cea3baef91
commit
19d9110314
1 changed files with 1 additions and 1 deletions
|
@ -8832,7 +8832,6 @@ setautorun(const char *selector, const char *value, int flags)
|
|||
err(1, "setautorun: realloc");
|
||||
a.argv[argc - 1] = ap;
|
||||
}
|
||||
free(str);
|
||||
|
||||
if ((a.argv = realloc(a.argv, (argc + 1) * sizeof(char *))) == NULL)
|
||||
err(1, "setautorun: realloc");
|
||||
|
@ -8844,6 +8843,7 @@ setautorun(const char *selector, const char *value, int flags)
|
|||
_exit(1);
|
||||
}
|
||||
free(a.argv);
|
||||
free(str);
|
||||
|
||||
/* parent */
|
||||
p = find_pid(pid);
|
||||
|
|
Loading…
Add table
Reference in a new issue