correct usage of free for strdup memory

Issue-ID: RIC-863
Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I7babfc04a57675b3fa53d207b6bd5dd07c84b262
1 file changed