TP 13 exo1: Only free when needed the array
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 29 Mar 2017 21:24:05 +0000 (23:24 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 29 Mar 2017 21:24:05 +0000 (23:24 +0200)
commit1c0d8256d86aef5bd306481764601c0463b901b8
treed5bf1b08e8852dd3241bbaf628e0b6b9ce66f529
parent19b8373e26e76cada35b3c042791c2365c453952
TP 13 exo1: Only free when needed the array

Needed to fix the memory leaks in case of error

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP_13/exo1/lib/array.c