Fix swaygrab memory leak

This commit is contained in:
Drew DeVault 2015-11-27 10:40:28 -05:00
parent f05b6cd55c
commit 04bd9386fe

View file

@ -43,6 +43,8 @@ void grab_and_apply_magick(const char *file, const char *output, int socketfd) {
fwrite(pixels, 1, len, f);
fflush(f);
fclose(f);
free(pixels);
free(cmd);
}
int main(int argc, char **argv) {