Skip to content

Commit

Permalink
topoh: improve mem error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pantelisk98 authored and henningw committed Apr 21, 2023
1 parent 30f3bb9 commit 4753296
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/topoh/topoh_mod.c
Expand Up @@ -219,6 +219,7 @@ static int mod_init(void)
th_uri_prefix.s = (char*)pkg_malloc(th_uri_prefix.len+1);
if(th_uri_prefix.s==NULL)
{
pkg_free(th_via_prefix.s);
PKG_MEM_ERROR_FMT("uri prefix parameter\n");
goto error;
}
Expand Down

0 comments on commit 4753296

Please sign in to comment.