mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Add missing failure handling for direct strdup() and asprintf() calls where the allocated result is consumed locally before any NULL/error check. This keeps the scope to the functions named in #1727 and avoids changing pass-through return sites where callers already receive NULL on allocation failure. Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
10 lines
523 B
Text
10 lines
523 B
Text
mynewt-nimble/nimble/host/services/ans/src/ble_svc_ans.c
|
|
mynewt-nimble/nimble/host/services/ans/include
|
|
#include "services/ans/ble_svc_ans.h"
|
|
#include "crypto/controlse/ccertificate.hxx"
|
|
* notifications for the ANS Unread Alert Status characteristic
|
|
object = new Controlse::CCertificate(
|
|
Controlse::CCertificate cert(se, settings->key_id);
|
|
auto certificate = Controlse::CCertificate(
|
|
* |---------- [-rw-r--r-- 15] afile.txt
|
|
g_afile.name = "afile.txt";
|