Skip to content

Commit

Permalink
Update raptor_uri.c
Browse files Browse the repository at this point in the history
check for potential null pointer dereference; see dajobe#66
(untested)
  • Loading branch information
cooljeanius committed Apr 12, 2024
1 parent b012d52 commit 85fc5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raptor_uri.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ raptor_free_uri(raptor_uri *uri)
}

/* this does not free the uri */
if(uri->world->uris_tree)
if(uri->world && uri->world->uris_tree)
raptor_avltree_delete(uri->world->uris_tree, uri);

if(uri->string)
Expand Down

0 comments on commit 85fc5b7

Please sign in to comment.