Skip to content

Commit 0c0239c

Browse files
committed
session client BUGFIX memory leak
1 parent 9412c92 commit 0c0239c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/session_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,11 +2434,11 @@ nc_recv_notif_thread(void *arg)
24342434
notif_clb(session, envp, op, user_data);
24352435
if (!strcmp(op->schema->name, "notificationComplete") && !strcmp(op->schema->module->name, "nc-notifications")) {
24362436
lyd_free_tree(envp);
2437-
lyd_free_tree(op);
2437+
lyd_free_all(op);
24382438
break;
24392439
}
24402440
lyd_free_tree(envp);
2441-
lyd_free_tree(op);
2441+
lyd_free_all(op);
24422442
} else if ((msgtype == NC_MSG_ERROR) && (session->status != NC_STATUS_RUNNING)) {
24432443
/* quit this thread once the session is broken */
24442444
break;

0 commit comments

Comments
 (0)