Skip to content

Commit 77eb9b3

Browse files
committed
session client BUGFIX avoid double free
1 parent c630961 commit 77eb9b3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/session_client.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,11 +2438,9 @@ nc_recv_notif_thread(void *arg)
24382438
notif_clb(session, envp, op, user_data);
24392439
if (!strcmp(op->schema->name, "notificationComplete") && !strcmp(op->schema->module->name, "nc-notifications")) {
24402440
lyd_free_tree(envp);
2441-
lyd_free_all(op);
24422441
break;
24432442
}
24442443
lyd_free_tree(envp);
2445-
lyd_free_all(op);
24462444
} else if ((msgtype == NC_MSG_ERROR) && (session->status != NC_STATUS_RUNNING)) {
24472445
/* quit this thread once the session is broken */
24482446
break;

0 commit comments

Comments
 (0)