Skip to content

Commit e9f5c9e

Browse files
committed
session BUGFIX missing unlock
1 parent 96ab91a commit e9f5c9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/session.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,10 +1239,10 @@ nc_server_get_cpblts_version(const struct ly_ctx *ctx, LYS_VERSION version)
12391239
/* get content-id */
12401240
if (server_opts.content_id_clb) {
12411241
yl_content_id = server_opts.content_id_clb(server_opts.content_id_data);
1242-
NC_CHECK_ERRMEM_GOTO(!yl_content_id, , error);
1242+
NC_CHECK_ERRMEM_GOTO(!yl_content_id, , unlock_error);
12431243
} else {
12441244
yl_content_id = malloc(11);
1245-
NC_CHECK_ERRMEM_GOTO(!yl_content_id, , error);
1245+
NC_CHECK_ERRMEM_GOTO(!yl_content_id, , unlock_error);
12461246
sprintf(yl_content_id, "%u", ly_ctx_get_change_count(ctx));
12471247
}
12481248

0 commit comments

Comments
 (0)