Skip to content

Commit 1afb8a0

Browse files
committed
main BUGFIX freeing uninitialized memory
1 parent bd1c401 commit 1afb8a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ np2srv_capabilities_oper_cb(sr_session_ctx_t *session, uint32_t sub_id,
516516
const char *module_name, const char *path, const char *request_xpath,
517517
uint32_t request_id, struct lyd_node **parent, void *private_data)
518518
{
519-
struct lyd_node *sys_capas, *datastore_capas, *per_node_capas;
519+
struct lyd_node *sys_capas = NULL, *datastore_capas, *per_node_capas;
520520
const struct ly_ctx *ly_ctx;
521521
int rc = SR_ERR_OK;
522522
uint32_t ds;

0 commit comments

Comments
 (0)