diff options
author | Luis de Bethencourt <luis.bg@samsung.com> | 2015-07-02 14:34:57 +0100 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-07-02 14:37:41 +0100 |
commit | 911f7b38b9299685924d42bed1b0f037db95ba6c (patch) | |
tree | 12be93c6f39aa56f849538f20c0d70a2cb7ff8a9 /sys | |
parent | 6a59cc4b7678422b18e0159ec4afc02f9c87b2cc (diff) |
v4l2transform: fix memory leak
tmp needs to be freed before going out of scope in 'done'.
CID #1308954
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2transform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2transform.c b/sys/v4l2/gstv4l2transform.c index f7b0233b3..b3a6b4247 100644 --- a/sys/v4l2/gstv4l2transform.c +++ b/sys/v4l2/gstv4l2transform.c @@ -761,6 +761,7 @@ gst_v4l2_transform_fixate_caps (GstBaseTransform * trans, &to_par_n, &to_par_d)) { GST_ELEMENT_ERROR (trans, CORE, NEGOTIATION, (NULL), ("Error calculating the output scaled size - integer overflow")); + gst_structure_free (tmp); goto done; } |