Skip to content

Commit 8033298

Browse files
committed
tas: fix a memory leak
Coverity: CID 739681 (#1 of 1): Resource leak (RESOURCE_LEAK) At (21): Variable "walker" going out of scope leaks the storage it points to. At (22): Variable "mess" going out of scope leaks the storage it points to. Signed-off-by: Ferry Huberts <[email protected]>
1 parent 25cdc28 commit 8033298

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/tas/src/plugin.c

+2
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ sendMessage(const char *service, const char *string)
412412
net_outbuffer_push(inter, mess, len);
413413
}
414414
}
415+
416+
freeMem(mess);
415417
}
416418

417419
static void

0 commit comments

Comments
 (0)