1  #include <stdlib.h>
       2  typedef struct z_stream_s {
       3    unsigned char *next_out;
       4  } z_stream;
       5  typedef struct gz_stream {
       6    z_stream stream;
       7    unsigned char *outbuf;
       8  } gz_stream;
       9  gz_stream *s;
      10  static void gz_open(const char *path)
      11  {
      12    s->stream.next_out = s->outbuf = (unsigned char *)malloc(16384); /* { dg-bogus "leak" } */
      13  }
      14  void gzopen(const char *path)
      15  {
      16    gz_open(path);
      17  }