From e9d25d5c73b52768dfa50220d11e41271a2889fc Mon Sep 17 00:00:00 2001 From: lda Date: Thu, 21 Mar 2024 20:14:58 +0100 Subject: [PATCH] [FIX] Fix double-free issue in user profile --- src/Routes/RouteUserProfile.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Routes/RouteUserProfile.c b/src/Routes/RouteUserProfile.c index 4c438b0..a4fc870 100644 --- a/src/Routes/RouteUserProfile.c +++ b/src/Routes/RouteUserProfile.c @@ -185,8 +185,6 @@ ROUTE_IMPL(RouteUserProfile, path, argp) finish: ConfigUnlock(&config); - /* Username is handled by the router, freeing it would cause issues. */ - Free(entry); UserIdFree(userId); UserUnlock(user); JsonFree(request);