Skip to content

Commit 2844865

Browse files
committed
Fix memory leak in load_service_config()
No other change intended.
1 parent c801cf3 commit 2844865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libqrexec/exec.c

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ int load_service_config(struct qrexec_parsed_command *cmd,
364364
int rc = load_service_config_raw(cmd, user);
365365
if (rc >= 0) {
366366
*wait_for_session = cmd->wait_for_session;
367+
free(user);
367368
}
368369
return rc;
369370
}

0 commit comments

Comments
 (0)