osc:dialogs: free after use

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>