Skip to content

Commit

Permalink
Fix storing of lan log segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
airween committed Oct 1, 2024
1 parent 0e8b180 commit 0fc8a27
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/log_to_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ void log_to_disk(int from_lan) {

total = total + score2(lan_logline);

struct qso_t *qso = parse_qso(lan_logline);
gchar *tlogline = g_strdup(lan_logline);

struct qso_t *qso = parse_qso(tlogline);

if (tlogline != NULL) {
g_free(tlogline);
}

addcall2();

Expand Down

0 comments on commit 0fc8a27

Please sign in to comment.