From 6769ad6e0aca58ccc037746885976ea4f85cb318 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 16 Dec 2017 04:01:54 +0100 Subject: ctrl_test: show memleak when receiving GET_REPLY and SET_REPLY commands The "memleak!" output shows messages that lack a talloc_free() of the parsed ctrl command buffer. The leak shall be fixed in a subsequent patch. Change-Id: I2c3e4d08b769b9cd77593362ea36a28d681cd042 --- tests/ctrl/ctrl_test.ok | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/ctrl/ctrl_test.ok') diff --git a/tests/ctrl/ctrl_test.ok b/tests/ctrl/ctrl_test.ok index edf97ead..9ddcfdb1 100644 --- a/tests/ctrl/ctrl_test.ok +++ b/tests/ctrl/ctrl_test.ok @@ -160,3 +160,21 @@ reply = '(null)' handling: replied: 'ERROR \t Command not found' ok +test: 'GET_REPLY 1 variable OK' +parsing: +id = '1' +variable = 'variable' +value = '(null)' +reply = 'OK' +handling: +mem leak! +ok +test: 'SET_REPLY 1 variable OK' +parsing: +id = '1' +variable = 'variable' +value = '(null)' +reply = 'OK' +handling: +mem leak! +ok -- cgit v1.2.3