Skip to content

Commit

Permalink
Fix bug!
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk committed Aug 24, 2023
1 parent c12cc2a commit 9ecd94d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cconfigspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ccs_release_object(ccs_object_t object)
utarray_free(obj->callbacks);
}
CCS_VALIDATE(obj->ops->del(object));
_ccs_object_deinit(object);
_ccs_object_deinit(obj);
free(object);
}
return CCS_RESULT_SUCCESS;
Expand Down
5 changes: 3 additions & 2 deletions src/configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,13 @@ _ccs_create_configuration(
configuration_space, i,
values[i],
config->data->values + i),
errmem);
errinit);
}
*configuration_ret = config;
return CCS_RESULT_SUCCESS;
errmem:
errinit:
_ccs_object_deinit(&(config->obj));
errmem:
free((void *)mem);
return err;
}
Expand Down

0 comments on commit 9ecd94d

Please sign in to comment.