Lines Matching refs:filenames
267 char **filenames; in profile_init_path() local
277 filenames = (char **) malloc((n_entries+1) * sizeof(char*)); in profile_init_path()
278 if (filenames == 0) in profile_init_path()
284 filenames[i] = (char*) malloc(ent_len + 1); in profile_init_path()
285 if (filenames[i] == 0) { in profile_init_path()
287 while(--i >= 0) free(filenames[i]); in profile_init_path()
288 free(filenames); in profile_init_path()
291 strncpy(filenames[i], s, ent_len); in profile_init_path()
292 filenames[i][ent_len] = 0; in profile_init_path()
299 filenames[i] = 0; in profile_init_path()
301 retval = profile_init((const char **) filenames, in profile_init_path()
305 while(--i >= 0) free(filenames[i]); in profile_init_path()
306 free(filenames); in profile_init_path()