Skip to content

Commit

Permalink
[host] fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Oct 21, 2023
1 parent 78484d1 commit fd65868
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lgmp/src/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ void lgmpHostFree(PLGMPHost * host)
if (!*host)
return;

free((*host)->udata);
free(*host);
*host = NULL;
}
Expand Down

0 comments on commit fd65868

Please sign in to comment.