[sr-dev] git:5.0:79d10d03: sqlops: free the result only if there is a result