objects

objects in c
git clone https://noulin.net/git/objects.git
Log | Files | Refs | README | LICENSE

commit 304fe855da352322f2a5b5f949c9157ca2138fcd
parent c3826b7b2e40fb610391d73daa9293ac1f31953b
Author: Remy Noulin (Spartatek) <remy.noulin@spartatek.se>
Date:   Tue, 21 Feb 2017 17:35:28 +0100

fix bug - free s string when needed

main.c | 2 ++
1 file changed, 2 insertions(+)

Diffstat:
Mmain.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -49,6 +49,8 @@ void initiateclasst(classt *self) { void terminateclasst(classt **self) { + if ((*self)->s) + free((*self)->s); free((*self)); }