rem: tmp = malloc(sizeof(char*)*(IM_TYPES+1)); if (!tmp) return NULL; memset(tmp, 0, sizeof(char*)*(IM_TYPES+1));
context: RSupportedFileFormats(void){    char **tmp;    int i = 0;        tmp = malloc(sizeof(char*)*(IM_TYPES+1));    if (!tmp)	return NULL;    memset(tmp, 0, sizeof(char*)*(IM_TYPES+1));        /* built-in */    tmp[i++] = wstrdup("XPM");    if (!tmp[i-1]) {	RFreeStringList(tmp);	return NULL;    }    /* built-in */    tmp[i++] = wstrdup("PPM");    if (!tmp[i-1]) {	RFreeStringList(tmp);	return NULL;    }#ifdef USE_TIFF    tmp[i++] = wstrdup("TIFF");    if (!tmp[i-1]) {	RFreeStringList(tmp);	return NULL;    }#endif#ifdef USE_PNG    tmp[i++] = wstrdup("PNG");    if (!tmp[i-1]) {	RFreeStringList(tmp);	return NULL;    }#endif#ifdef USE_JPEG    tmp[i++] = wstrdup("JPEG");    if (!tmp[i-1]) {	RFreeStringList(tmp);	return NULL;    }#endif#ifdef USE_GIF    tmp[i++] = wstrdup("GIF");    if (!tmp[i-1]) {	RFreeStringList(tmp);	return NULL;    }#endif    tmp[i] = NULL;        return tmp;}