Skip to content

Commit

Permalink
sources/storage.c" fix memory leak (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
chipitsine authored Feb 6, 2024
1 parent 811cf3d commit 91e28d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ od_rule_storage_t *od_rules_storage_allocate(void)
memset(storage, 0, sizeof(*storage));
storage->tls_opts = od_tls_opts_alloc();
if (storage->tls_opts == NULL) {
free(storage);
return NULL;
}
storage->target_session_attrs = OD_TARGET_SESSION_ATTRS_ANY;
Expand Down

0 comments on commit 91e28d1

Please sign in to comment.