perhaps we could do 
listener = (DVCMAN_LISTENER *) calloc(1, sizeof(DVCMAN_LISTENER));

plus check return value here.