Kill of alloca() from tufdio tests
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 30 Apr 2008 10:34:28 +0000 (13:34 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 30 Apr 2008 10:34:28 +0000 (13:34 +0300)
- yes it leaks, who cares

rpmio/tufdio.c

index 19572cd..034d19a 100644 (file)
 extern int _url_debug;
 extern int _rpmio_debug;
 
-#define        alloca_strdup(_s)       strcpy(alloca(strlen(_s)+1), (_s))
-
 const char *tmpdir = "/tmp";
 const char *dio_xxxxxx = "/dio.XXXXXX";
-#define        DIO_XXXXXX      alloca_strdup(dio_xxxxxx)
+#define        DIO_XXXXXX      strdup(dio_xxxxxx)
 const char *fio_xxxxxx = "/fio.XXXXXX";
-#define        FIO_XXXXXX      alloca_strdup(fio_xxxxxx)
+#define        FIO_XXXXXX      strdup(fio_xxxxxx)
 
 static const char * xstrconcat(const char * arg, ...)
 {