Ticket 733: Memory leak in beamblockage.c @381 hudson-beamb-19-SUCCESS
authorAnders Henja <anders@baltrad.eu>
Tue, 3 Jan 2012 07:54:32 +0000 (08:54 +0100)
committerAnders Henja <anders@baltrad.eu>
Tue, 3 Jan 2012 07:54:32 +0000 (08:54 +0100)
lib/beamblockage.c

index 5a5d828..e157f2d 100644 (file)
@@ -383,6 +383,7 @@ int BeamBlockage_setCacheDirectory(BeamBlockage_t* self, const char* cachedir)
       goto done;
     }
   }
+  RAVE_FREE(self->cachedir);
   self->cachedir = tmp;
   tmp = NULL; // Release responsibility for memory
   result = 1;