commit | e66910a57365dba191a23b5175a5d53eca876176 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Wed May 16 13:26:08 2018 -0700 |
committer | George Burgess IV <gbiv@google.com> | Thu May 17 13:07:55 2018 -0700 |
tree | acba37820a9b62d63bf353c7e5b085eceadf5815 | |
parent | 334e5dff4751eb77ade396f4c32404ca2b2892b3 [diff] |
Fix a memory leak If nLayers is insane, we won't properly free `video` in the `fail` block, since the nLayers check is done before we assign `video` to `decCtrl->videoDecoderData`. Caught by the static analyzer. Bug: None Test: Ran the analyzer again. It no longer complains about this leak. Change-Id: I6ec612b75f9d325c7693f670a96d95363f6bb2ae