Skip to content

Commit e2b5166

Browse files
kohtalaEmmanuelP
authored andcommitted
gst: free pixel formats on error path to avoid leak
1 parent d36b7cc commit e2b5166

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gst/gstaravis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ gst_aravis_get_all_camera_caps (GstAravis *gst_aravis, GError **error)
174174
}
175175
if (local_error) {
176176
g_propagate_error (error, local_error);
177+
g_free (pixel_formats);
177178
return NULL;
178179
}
179180

0 commit comments

Comments
 (0)