GNOME Bugzilla – Bug 734648
Error not handled properly
Last modified: 2014-08-13 14:34:18 UTC
Created attachment 283166 [details] [review] Improved error handling In gst-plugin-base/tests/check/pipelines: oggmux.c handles the error and prints the required error message, but does not make it free after use of *error. make me correct if i am wrong i have seen i many modules, this needs to be freed. Adding a patch for same. thank you.
Review of attachment 283166 [details] [review]: ::: tests/check/pipelines/oggmux.c @@ +265,3 @@ error ? error->message : "(invalid error)"); + if (error != NULL) + g_error_free (error); You can just use g_clear_error(&error) here without the if, however this should be no problem. If there is an error it will fail the test anyway before even reaching these lines
Closing as this code is not reachable anyway if error is not NULL.