AddGenericFrame: fix memory leak on failure

quiets a static analysis warning

Change-Id: I9fac3c495beefb0a76d0476573b95700662e082c
1 file changed