aboutsummaryrefslogtreecommitdiff
path: root/swaygrab
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-23 07:53:08 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-23 07:53:08 -0500
commitf438d3897d165a978226bac22e897e8522f65de8 (patch)
tree22876e141967dc3a8f80b11d79828f692643c473 /swaygrab
parent72043b231d99162d917c3234bfbf99b6a9e29945 (diff)
parent7b00eab8adf310a6b65c8856428c7bf1a381dfb6 (diff)
Merge pull request #398 from juju2143/bug-correction-1
swaygrab: Fix memory leak when recording videos
Diffstat (limited to 'swaygrab')
-rw-r--r--swaygrab/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaygrab/main.c b/swaygrab/main.c
index 1120f0d5..d64d2ff2 100644
--- a/swaygrab/main.c
+++ b/swaygrab/main.c
@@ -94,6 +94,7 @@ void grab_and_apply_movie_magic(const char *file, const char *output,
fwrite(pixels, 1, len, f);
+ free(pixels - 9);
clock_gettime(CLOCK_MONOTONIC, &finish);
ts.tv_nsec = ns;
double fts = (double)finish.tv_sec + 1.0e-9*finish.tv_nsec;