qpop: free the popped value