aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Tiemann <rtie@gmx.de>2024-02-13 14:18:22 +0100
committerDenis Kenzior <denkenz@gmail.com>2024-04-18 10:40:57 -0500
commit77a9ba6faffab5cbd162db2049c602b57c7f8d93 (patch)
tree5997d04c7074202110e051d315d2c83851ce3f18
parentb569e011f4cb94b6cdac741b28d54a5b8aa836db (diff)
downloadconnman-77a9ba6faffab5cbd162db2049c602b57c7f8d93.tar.gz
technology: Fix memory leak.
-rw-r--r--src/technology.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/technology.c b/src/technology.c
index 65fb98548..270d83d0d 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -479,8 +479,10 @@ static void technology_load(struct connman_technology *technology)
enc = g_key_file_get_string(keyfile,
identifier, "Tethering.Passphrase", NULL);
- if (enc)
+ if (enc) {
technology->tethering_passphrase = g_strcompress(enc);
+ g_free(enc);
+ }
technology->tethering_freq = g_key_file_get_integer(keyfile,
identifier, "Tethering.Freq", NULL);