X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/42bccafc30073c1428d63b93d5db8b749491c8d4..bcc109d826c38765e79b3d70b1595f3e2407e2d8:/spectrwm.c diff --git a/spectrwm.c b/spectrwm.c index 056550b..65952ed 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -61,7 +61,11 @@ #include #include #include +#ifdef __OSX__ +#include "queue.h" +#else #include +#endif #include #include #if defined(__linux__) @@ -8828,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"); @@ -8840,6 +8843,7 @@ setautorun(const char *selector, const char *value, int flags) _exit(1); } free(a.argv); + free(str); /* parent */ p = find_pid(pid);